How to target multiple destinations when working with Agents that specify targets like log files names (ie: the log file's name changes daily)?
For example:
Admin Console | Dashboards | Administration | Agents | Agent Status | highlight ApacheSrv agent | Edit Properties | Default File Name
Our Apache Server uses the 'rotatelogs' parameter, which causes the log file name to change daily.
Yesterday's Apache Server's access_log (access_log-portal.08.12.08) and today's access log (access_log-portal.08.13.08).
The Foglight ApacheSrv agent needs to recognize the log each day and report on transactions that were specified in the ApachSrv Agent's Properties | TransNameList.
Use REGEX's in specification for log file names.
Admin Console | Dashboards | Administration | Agents | Agent Status | highlight ApacheSrv agent | Edit Properties | use ^access_log for Default File Name
The ^ character is a Regular Expression (REGEX = industry standard for wildcards) which matches any string that starts with what follows the ^ symbol.
For example:
^PALM would match:
PALMetto, PALMTREE, PALM_springs
ie. ^access_log-portal.*
Result: Foglight searches multiple access_log files and matches current access_log-portal.08.12.08 and then rolls to tomorrow's access log access_log-portal.08.13.08 .
Also reference KB 71397
A full description of Regular Expressions and how they're used is discussed in the Appendix of the CartridgeForInfrastructure_Guide.
NOTE: Online 3rd party regex tester regex101
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Feedback 使用条款 隐私 Cookie Preference Center