Integrate the Log Auto-Discovery Extension
The Log Auto-Discovery Extension enables you to use the Machine Agent with the Analytics Agent Extension to the Standalone Machine Agent to automatically detect and monitor log files. It is intended to support any Unix and Windows operating system (Windows support may vary). With this extension, you can:
- Identify open log files of a process with a given string match, or files in a given directory matching a string.
- Test a sample of the found log file to determine the file type.
- Create a new job file for the log file in the Analytics Agent job directory. This job file will inform the Analytics Agent to begin monitoring based on those rules.
- Automatically delete all generated job files when the Machine Agent shuts down. This allows for re-detection of application processes and associated log files, as well as updated log file message format matching.
With this solution, it is possible to perform real-time and automatic collection of logs through the Machine Agent.
SELECT * FROM logs
. See Analytics Log Data and SELECT Clause.Before You Begin
- Ensure that you have Installed Machine Agent. See Install the Machine Agent.
- Ensure that you have installed and configured the Analytics Agent Extension to the Standalone Machine Agent. See Enable the Analytics Agent as an Extension to the Standalone Machine Agent.
- Ensure that you have
lsof
installed.
Add the Extension to the Machine Agent
Use the Log Analytics Data
You can collect Log Analytics data from many types of log files, including instrumented and non-instrumented applications as well as infrastructure. Log Analytics can be used as a standalone component. You can search and analyze log data just as you do transaction data.
For more details about how to use the log data, see Using Analytics Data.