Configuring LogSources for Log Files

Last updated on 22 November, 2022

With LogSources you can view and configure log integrations in the LogicMonitor portal. LogSources provides out-of-the-box setup and configuration for some popular logsources. This article describes specific configuration options when setting up LogSources for Log Files types of resources.

Creating LogSources

LogSources are created from Settings in the LM portal. For general information on how to add a logsource, see Creating LogSources.

Configuration Options

The Log Files log resource type uses the LM OpenTelemetry Collector (LM OTEL Collector) to forward traces from your instrumented applications to the LM platform. For more information see OpenTelemetry Collector for LogicMonitor Overview. The following describes configuration options specific when adding a Log Files type of logsource.

General Information

Provide the path name for the log file, in XML format, in the Log File Path field (required). 

Include Filters

You can add filters to specifically include resources of certain types, for example an application.

Available parameters

AttributesComparison OperatorValue
MessageRegexMatch, RegexNotMatch.Regular expression

Log Fields/Tags

You can configure Log Fields/Tags to include additional metadata to be sent with the logs.

Available parameters

StaticFor example “Customer”For example “Customer_XYZ”
Dynamic(REGEX)For example “Host”For example “host=*”
LM Property(Token)For example “Device”For example “##system.deviceId##”

Parameter explanation

  • Dynamic(REGEX): The query will run on the message field.


Configuration example for a Log Files type of logsource.

General Information

  • Name: Log_File
  • Description: Data collection template for data from monitored log files. 
  • Type: LM Logs: Log Files
  • Group: Log Files
  • Log File Path: \\share\logfile.log
In This Article