Moogsoft Docs

Logfile LAM Reference

This is a reference for the Logfile LAM . The Logfile LAM configuration file is located at $MOOGSOFT_HOME/config/logfile_lam.conf

It contains the following sections and properties:

Monitor

name : Name of the LAM.

Type : String
Required : Yes
Default : "Log File Monitor" . Do not change.

class : Class of the LAM.

Type : String
Required : Yes
Default : "CLogFileLamMonitor" . Do not change.

target : The path and file name of the target log file.

Type : String
Required : Yes
Example : "CLogFileLamMonitor" .

date_format : The format of the date if it's present in the target log file name. See the SimpleDateFormat definition for information on date and time patterns.

Type : String
Required : No
Default : N/A

load_at_start : Determines whether the LAM processes the contents of the target file at startup then waits for additional data to be written to the file.

Type : Boolean
Required : No
Default : True

exit_after_initial_load : Determines whether the LAM processes the contents of the target file and then exits. This is useful if you are bulk-loading data into Moogsoft AIOps for analysis.

Type : Boolean
Required : No
Default : False

event_ack_mode : Determines when Moogfarmd acknowledges events from the Logfile LAM. Acknowledge events when Moogsoft AIOps adds them to the Moolet queue with queued_for_processing . Acknowledge events when a Moolet processes them with event_processed .

Type : String
Required : Yes
One of : queued_for_processing, event_processed
Default : "queued_for_processing"

num_threads : Number of worker threads to use.

Type : Integer
Required : No
Default : The number of available CPUs, up to a maximum of 8

Agent

name : Identifies events the Logfile LAM sends to the Message Bus.

Type : String
Required : Yes
Default : "Logfile"

Log Config

configuration_file : File that specifies the configuration of the Logfile LAM's process log. The process log records the activities of the LAM as it ingests raw data. See Configure Logging for more information.

Type : String
Required : No
Default : "$MOOGSOFT_HOME/config/logging/integrations.log.json"