Getting Data In

Splunk ignores similar lines in an event

crobicha
Explorer

This seems to be a similar problem as what is happening in my other question, but it seems different enough to create a separate thread.

We have a server process running that dumps log data out every 5 minutes to a single file, which is splunk indexed. We track stats whenever certain requests are made and write to the log in the format:

METHOD=[method name] COUNT=[number of times this method was called in last 5 min] LENGTH=[cumulative time spent on this method in the last 5 min]

The problem is that (similar to the other thread) only the first method in each event is showing up when I do a search, for example:

source="stats.log" "METHOD" | table METHOD LENGTH COUNT

shows only the first method in that log repeated over and over again, and ignores any after the first one.

Tags (2)
0 Karma

tgow
Splunk Employee
Splunk Employee

Without seeing more lines of your logfile does this search help:

source="stats.log" METHOD="*" | table METHOD, LENGTH, COUNT
0 Karma
Get Updates on the Splunk Community!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...