You can configure the VMware Aria Operations for Logs Linux agent to collect log events from one or more log files.
By default the VMware Aria Operations for Logs Linux agent collects hidden files created by applications or editors. The hidden filenames start with a period. You can prevent the VMware Aria Operations for Logs Linux agent from collecting hidden files by adding an exclude parameter, exclude=.*.
Field names are restricted. The following names are reserved and cannot be used as field names.
- event_type
- hostname
- source
- text
You can specify up to three destinations for agent information and filter the information before it is sent. See Forwarding Logs from a VMware Aria Operations for Logs Agent
Note: Monitoring a large number of files, such as a thousand or more, leads to a higher resource utilization by
VMware Aria Operations for Logs Agent and impacts the overall performance of the host machine. To prevent this, configure the agent to monitor only the necessary files using patterns and globs, or archive the old log files. If monitoring a large number of files is a requirement, consider increasing the host parameters such as CPU and RAM.
Prerequisites
- Log in as root or use sudo to run console commands.
- Verify that the VMware Aria Operations for Logs Linux agent is installed and running. Log in to the Linux machine on which you installed the VMware Aria Operations for Logs Linux agent, open a console, and run pgrep liagent.
Procedure
Example: Configurations
[filelog|messages] directory=/var/log include=messages;messages.? [filelog|syslog] directory=/var/log include=syslog;syslog.? [filelog|Apache] directory=/var/log/apache2 include=*