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!

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...