Splunk Search

some json log lines are merged into one block

ajitdev381
Engager

Our application prints logs in json format . example 

{"ts":"05 30 2023 10:30:00.013","th":"logging-metrics-publisher","level":"INFO ","logger":"LoggingMeterRegistry","msg":"jvm.threads.states{state=timed-waiting} value=40 threads" }
{"ts":"05 30 2023 10:30:00.012","th":"logging-metrics-publisher","level":"INFO ","logger":"LoggingMeterRegistry","msg":"jvm.threads.states{state=waiting} value=222 threads" }

Some logs are displayed in json format and some are not . json format logs are generated by same code .  but i am not sure why some logs are shown in same block like this.

ajitdev381_0-1685709430560.png


we haven't put anything in props file

 

Labels (2)
0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

Usually it's good to do needed onboard like define what those files contains and also define now sourcetype for those. In most cases this needs both inputs.conf on source system and/or props.conf (+transforms.conf) on 1st full Splunk Enterprise instance to get those correctly imported into splunk.

How you are getting those events? Read those from log file via UF or getting those via HEC or something else?

r. Ismo

0 Karma
Get Updates on the Splunk Community!

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...