The File Formats properties allow you to specify the format of the log files that you want to monitor.
• |
File Formats: A list describing the structure of contents in the monitored log files. Any file that you monitor must have its format specified in this list. In most cases, all agent instances refer to one global list of file formats. The global list is pre-populated to describe some common log file formats. |
• |
Name: The name of the file format. |
• |
Max Record Size: The maximum length of a record entry in bytes to use for pattern matching and submission to the Management Server. If a record is larger in size, it is truncated. The pattern is still applied to the entire record when searching for a match. This property is optional, and defaults to 1024 if not specified. |
• |
New Line Policy: The character or sequence of characters used to signify the end of a text line (EOL) in the file format. The following values are available: |
• |
Rollover Policy: Indicates to the agent the way the contents of the log files using this format are rotated when they reach their maximum size. |
• |
Record Separator RegEx: A regular expression indicating when a log record ends and a new one starts. This property is optional. The default is an empty string which indicates that each record is a single line. |
• |
Character Set: The character encoding used in the log file using this format. The character set must be installed on the remote host, and available through the iconv utility. The native character set is translated to UTF-8 when a log record is reported. This property is optional. If not specified, it defaults to UTF-8. |
• |
Maximum Match Count: The maximum number of records the agent can read during one collection interval. If the agent reaches the number of records before the end of the file, it continues to read the remainder of the file during the next collection interval, and so on. |
• |
Max Processing Time(s): The amount time in seconds the agent can spend on reading all log files in one collection cycle while being connected to the remote host. |
The Record Transformations properties allow you to transform any log message before it is sent to the Management Server. This could be used to add extra information or to remove sensitive information from a log record.
• |
Record Transformations: A list of record transformations that the agents must use in conjunction with the match patterns to convert any log messages. When no transformation is specified, the log record is transmitted to the Management Server without changes. |
• |
RegEx Record Transformation Pattern: A regular expression that the agent uses to look for specific text in the collected log record. |
• |
Record Transformation: The replacement text that the agent uses in the log record to be transmitted to the Management Server. |
The Datacenter Collection Scheduler agent properties specify the data frequency settings the agent uses to read monitored log files.
• |
Collector Config: A list containing the data collectors the agent uses. Each entry in the list includes the following columns: |
• |
Collector Name: The name of the collector the agent uses to gather data. |
• |
Default Collection Interval: The number of milliseconds, seconds, minutes, hours, or days during which the agent collects data. |
• |
Time Unit: The time unit associated with the Default Collection Interval. |
• |
Fast-Mode Collection Interval: The number of milliseconds, seconds, minutes, hours, or days during which the agent collects data when working in the fast collection mode. |
• |
Fast-Mode Time Unit: The time unit associated with the Fast-Mode Collection Interval. |
• |
Fast-Mode Max Count: The maximum number of the times the agent can stay in fast collection mode. |
This example provides the configuration settings for monitoring the FglAM log files on a UNIX® system for WARN and ERROR records. The FglAM log files are located in the /home/user/FglAM/state/default/logs folder. FglAM log records have a date at the beginning of each record that look like this:
This format can be set as the regular expression for the record separator.
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Termini di utilizzo Privacy Cookie Preference Center