Configuring LogSources for Kubernetes PodsLast 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.
The following describes configuration options specific to the Kubernetes Pods type of logsource. For information on how to add a logsource, see Creating LogSources.
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.
|Attributes||Comparison operator||Value example|
|Message||Equal, NotEqual, Contain, NotContain, RegexMatch, RegexNotMatch.||Regular expression|
You can configure Log Fields/Tags to send additional metadata with the logs.
|Method||Key example||Value example||Description|
|Dynamic(REGEX)||“Host”||“host=*”||The query will run on the message field.|
Configuration example for a Kubernetes Pods type of logsource.
- 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