Splunk Search

Events from Docker do not have proper field extractions

rwardwell
Explorer

We are sending test data from a docker container to splunk via the splunk logging driver. I am able to vie the data but there is not any additional field extraction based on the sourcetype I assign, i.e. catalina, json etc. Is this something I need to change on the docker side? I have seen some references to the _raw format vs json vs inline but it did not seem like it would necessarily help.

0 Karma

tgrogan_stack
Explorer

In order for any built-in field extractions to work your source data must actually be in that format. Setting the sourcetype in inputs.conf does not cause the data to be in that format.

You may need to add stanzas to props.conf and/or transforms.conf to tell Splunk how to parse events and fields.

I have, on occasion resorted to regex for field extractions at search time.

Can you provide an example of the test data you are sending to Splunk? That might help in understanding what you are sending, and therefore, what you should be telling Splunk regarding the expected format.

0 Karma
Get Updates on the Splunk Community!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...