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!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...