Getting Data In

How to edit my props.conf to properly group multiple lines in one event instead of line breaking after a fixed set of lines?

joydeep741
Path Finder

I want my logs to be indexed as follows:

EVENT-1 THIS IS SOME LINE
New line 1
New line 2
New line 3
New line ..
New line ..
New line 21

EVENT-2 THIS IS SOME LINE
New line 1
New line 2
New line 3
New line ..
New line ..
New line 21

But they get Indexed like:
EVENT-1 THIS IS SOME LINE
New line 1
New line 2
New line 3

EVENT-2
New line ..
New line ..
New line 21

EVENT-3 THIS IS SOME LINE
New line 1
New line 2
New line 3

EVENT-4
New line ..
New line ..
New line 21

Basically its giving a LINE BREAK after a fixed set of lines instead of what I have configured in props.conf.
How can I increase the number of lines/events that can be grouped together in one event ?

I used the following props.conf

[punchout]
   SHOULD_LINEMERGE = true
   LINE_BREAKER = ([\r\n]+)\[\w+\]\s\[\d{1,2}\/\d{1,2}\/\d{1,4}\s\d{1,2}:\d{1,2}:\d{1,2}:\d{1,3}\].+UserCreateAndEditTask\sprocessRequest\smethod\sstarted
   TIME_FORMAT =%m/%d/%Y %H:%M:%S:%3N
   MAX_TIMESTAMP_LOOKAHEAD = 25
   TIME_PREFIX = \[
   TRUNCATE = 0
   MAX_EVENTS = 20000 
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi joydeep741,
can you identify the LINE BREAKER REGEX? the one you showed isn't so clear and the only one.
can you share an example of your logs?
Bye.
Giuseppe

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 ...