Splunk Enterprise

How to event break on multiple dashes?

iamsplunker
Communicator

The following event being parsed as single event. I'm trying to break the event into multiple events

Sample data

Timestamp: 2021.09.21 - 23:10:17.463
Message: c0d8758b-3fxy-44ca-aa65-hf180002d499
Organization Name: bananaII
UserId: systemuser
AppTracking: abcd2400-34ac-50el-3456-4abcd7636

------------------- CommonMessageInput ----------------
Timestamp: 2021.09.21 - 23:10:17.463
Message: c0d8758b-3fxy-44ca-aa65-hf180002d499
Organization Name: bananaII
UserId: systemuser
AppTracking: abcd2400-34ac-50el-3456-4abcd7636

------------------- CommonMessageInput ----------------
Timestamp: 2021.09.21 - 23:10:17.463
Message: c0d8758b-3fxy-44ca-aa65-hf180002d499
Organization Name: bananaII
UserId: systemuser
AppTracking: abcd2400-34ac-50el-3456-4abcd7636

I'm trying to break the event before ------------------- CommonMessageInput ---------------- so the events will be 

Event 1

Timestamp: 2021.09.21 - 23:10:17.463
Message: c0d8758b-3fxy-44ca-aa65-hf180002d499
Organization Name: bananaII
UserId: systemuser
AppTracking: abcd2400-34ac-50el-3456-4abcd7636

Event 2

------------------- CommonMessageInput ----------------
Timestamp: 2021.09.21 - 23:10:17.463
Message: c0d8758b-3fxy-44ca-aa65-hf180002d499
Organization Name: bananaII
UserId: systemuser
AppTracking: abcd2400-34ac-50el-3456-4abcd7636

Event 3

------------------- CommonMessageInput ----------------
Timestamp: 2021.09.21 - 23:10:17.463
Message: c0d8758b-3fxy-44ca-aa65-hf180002d499
Organization Name: bananaII
UserId: systemuser
AppTracking: abcd2400-34ac-50el-3456-4abcd7636

 

Labels (1)
Tags (1)
0 Karma

maciep
Champion

It's been a minute since I've been a splunk admin, so fairly rusty here....but I think you might want something like this in your props.  

[your_sourcetype]
MAX_TIMESTAMP_LOOKAHEAD = 25
TIME_FORMAT = %Y.%m.%d - %H:%M:%S.%3N
TIME_PREFIX = Timestamp:
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)(?=-{10})

 

0 Karma
Get Updates on the Splunk Community!

Monitoring Postgres with OpenTelemetry

Behind every business-critical application, you’ll find databases. These behind-the-scenes stores power ...

Mastering Synthetic Browser Testing: Pro Tips to Keep Your Web App Running Smoothly

To start, if you're new to synthetic monitoring, I recommend exploring this synthetic monitoring overview. In ...

Splunk Edge Processor | Popular Use Cases to Get Started with Edge Processor

Splunk Edge Processor offers more efficient, flexible data transformation – helping you reduce noise, control ...