Getting Data In

How to configure Splunk to line break events into multiple lines instead of one line?

jguzowski
Engager

I have events coming in all in one line like:

timestamp="2017-5-19 13:00:00.000", level="INFO", machine_name="blahblah1", app="cool_app".  

I'd like to have it separate out like this:

timestamp=2017-5-19 13:00:00.000
level=INFO
machine_name=blahblah1
app=cool_app

How would I go about approaching this? I'm assuming I need to utilize props.conf and transforms.conf to do this.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

I'm not sure why you would want to do this as you will lose the association between the fields. If you really want to try it, props.conf is what you need.

[mysourcetype]
LINE_BREAKER = [\r\n,]+
---
If this reply helps you, Karma would be appreciated.
0 Karma

woodcock
Esteemed Legend

I agree with @richgalloway. IMHO, nobody should do this BUT if you do, be aware that you will get a tone of warnings in your logs which say something like "WARN: could not find timestamp; timestamp defaulted to that of the previous event" which is exactly the correct thing to do (but you will not be able to stop the warnings).

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...