×
Back to Geneos FAQ
Internal documentation only
This page has been marked as draft.
StateTracker Plugin - Monitoring Log Files Containing Data and Timestamps
This FAQ article addresses common issues encountered when monitoring log files containing data and timestamps using the stateTracker plugin.
Sample log file that needs to be detected:
/home/MNL/nabueg/New.net.20250117105022.log
Problem Copied
- Having difficulty monitoring log files with timestamps using stateTracker. The error message sample like below:
- using /home/MNL/nabueg/New.*.<today%Y%m%d%H%M%S>.log. Will show the error message sample like below:
Datasource not found matching "file://c:\xxxxxx*.log"
Cause Copied
- The problematic configuration uses a timestamp format that includes the time down to seconds (<today%Y%m%d%H%M%S>).
- If the log files are not generated exactly at the specified time, this format can cause issues.
Solution Copied
Using two alternative timestamp formats below:
/home/MNL/nabueg/New.*.<today%Y%m%d*>.log/home/MNL/nabueg/New.*.<today>*.log
Explanation Copied
The key difference between the problematic configuration and the working ones lies in the timestamp format.
- The problematic configuration uses
<today%Y%m%d%H%M%S>, which includes the time down to seconds. This might cause issues if the log files are not generated exactly at the specified time. - The working configurations use either
<today%Y%m%d*>(including only the date) or<today>*.log(matching any date). These capture log files generated on any day without requiring an exact time match. - If your log files are generated at specific times and you need to monitor them based on those times, use
/data01/onetick/log/load_bbg_dl.*.<today%Y%m%d%H%M%S>.log. Ensure your time format matches the log file generation process. - If your log files are generated throughout the day and you only care about the date, use
/data01/onetick/log/load_bbg_dl.*.<today%Y%m%d*>.log. - If your log files use a different date format, adjust the placeholder accordingly (e.g.,
<yesterday>for yesterday’s logs).
By following these guidelines, you should be able to effectively monitor your log files using the stateTracker plugin.
Screenshots and Sample XML:
["Geneos"]
["Geneos > Netprobe"]
["FAQ"]