Getting Data In

How to configure Splunk to split logs from a single event?

rameshlpatel
Communicator

Hi,

In my prod env, I am logging sql log in files with below given format. but splunk are not able identify each log as single events, In my case its taking multiple logs line in single splunk event. I am also adding breakline at end of each logs but still it didnt work.

So here my question is how should i configure splunk to split each log line as different event?

Following 5 logs are splunk considering in single events line.

Id = 156388596 Logger_Level = 32 Information = STOP:UM_VEHICLE.get_dispatch Difference = 18 Date = 21-JUL-2014 Time = 05:07:50.217741000 Scope = NULL Action = Initialized Module = OCS User_Name = OCS Client_identifier = cmcdona6 Call_Stack = NULL Unit_Name = UM_VEHICLE.GET_DISPATCH Line_No = 0 Scn = 0
Id = 156388597 Logger_Level = 32 Information = START:UM_ROUTEORDER_CONFIRMATION.Get_Confirm Difference = 0 Date = 21-JUL-2014 Time = 05:07:50.227767000 Scope = NULL Action = Initialized Module = OCS User_Name = OCS Client_identifier = cthoma24 Call_Stack = NULL Unit_Name = UM_ROUTEORDER_CONFIRMATION.GET_CONFIRM Line_No = 0 Scn = 0
Id = 156388598 Logger_Level = 32 Information = STOP:UM_ROUTEORDER_CONFIRMATION.Get_Confirm
Difference = 29 Date = 21-JUL-2014 Time = 05:07:50.256505000 Scope = NULL Action = Initialized Module = OCS User_Name = OCS Client_identifier = cthoma24 Call_Stack = NULL Unit_Name = UM_ROUTEORDER_CONFIRMATION.GET_CONFIRM Line_No = 0 Scn = 0
Id = 156388599 Logger_Level = 32 Information = START:UM_ROUTEORDER_CONFIRMATION.Get_Confirm Difference = 0 Date = 21-JUL-2014 Time = 05:07:50.480626000 Scope = NULL Action = Initialized Module = OCS User_Name = OCS Client_identifier = dgooding Call_Stack = NULL Unit_Name = UM_ROUTEORDER_CONFIRMATION.GET_CONFIRM Line_No = 0 Scn = 0
Id = 156388600 Logger_Level = 32 Information = STOP:UM_ROUTEORDER_CONFIRMATION.Get_Confirm Difference = 31 Date = 21-JUL-2014 Time = 05:07:50.511849000 Scope = NULL Action = Initialized Module = OCS User_Name = OCS Client_identifier = dgooding Call_Stack = NULL Unit_Name = UM_ROUTEORDER_CONFIRMATION.GET_CONFIRM Line_No = 0 Scn = 0

Tags (3)
1 Solution

strive
Influencer

Assuming each line starts with Id =

You should define line breaker rule in your props.conf file, like

[my_stanza]
LINE_BREAKER=([\r\n]+)Id = \d+

Note: I am not good at regular expressions. Please check the regular expression and modify it accordingly.

View solution in original post

strive
Influencer

Assuming each line starts with Id =

You should define line breaker rule in your props.conf file, like

[my_stanza]
LINE_BREAKER=([\r\n]+)Id = \d+

Note: I am not good at regular expressions. Please check the regular expression and modify it accordingly.

strive
Influencer

Yes. You have to configure it indexer props.conf

0 Karma

rameshlpatel
Communicator

Thanks for you answer,So Should I configured this in indexer props.conf?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...