Configuring LogSources for Kubernetes Pods

Last updated on 28 March, 2023

LogSources is a LogicModule that provide templates to help you enable LM Logs and configure log data collection and forwarding. LogSources contain details about which logs to get and where to get them, and which fields should be considered for parsing. LogSources is available for common sources of log data. The following describes how to set up LogSources for Kubernetes Pods.


The Kubernetes Pods log resource type uses the LM Collector. When using the LM Collector with LogSources, the LM Collectors installed in your infrastructure must be version EA 31.200 or later. For information on how to upgrade a collector, see Managing Collectors.

Configuration Options

The following describes configuration options specific to the Kubernetes Pods type of logsource. For information on how to add a logsource, see Creating LogSources.

Include Filters

You can add filters to include resources of certain types, for example an application. The output matching the filter criteria will be forwarded to the log ingestion process.

Available parameters

AttributesComparison operatorValue example
MessageEqual, NotEqual, Contain, NotContain, RegexMatch, RegexNotMatch.Regular expression

Log Fields/Tags

You can configure Log Fields/Tags to send additional metadata with the logs.

Available parameters

MethodKey exampleValue exampleDescription
Dynamic(REGEX)“Host”“host=*”The query will run on the message field.
LM Property(Token)“Device”“##system.deviceId##”


Configuration example for a Kubernetes Pods type of logsource.

General Information

  • Name: Kubernetes_Pods
  • Description: Data collection template for pod logs from monitored Kubernetes clusters.
  • AppliesTo (custom query): system.devicetype == “8” 
  • Type: LM Logs: Kubernetes Pods
  • Group: Kubernetes
In This Article