Getting Data In

Problem finding title to use for my BREAK_ONLY_BEFORE

robinBonin
New Member

I have an exe that I am calling as a script input. The data is being indexed, but I need the messages to be indexed as multiple lines per event, and each line is being indexed as a event. I was using a specific BREAK_ONLY_BEFORE property, and it was working correctly (previous version of splunk). My problem is I don't know what [header] to place the rule under.

I have the sourcetype set to iis, source is called Email
Ive tried every combination I can thing of.
[iis], [Email], [sourcetype:iis], [script] etc...

Any thoughts on what I can try?

[script]
BREAK_ONLY_BEFORE = Date
BREAK_ONLY_BEFORE = ###_End_Of_Mail_Message_###

0 Karma

bbingham
Builder

Breaks need to be placed in the props.conf. I assume in your inputs.conf your forcing the sourcetype to iss? If so,

inputs.conf
[script://blah.exe]
sourcetype = iis


props.conf
[iis]
SHOULD_LINEMERGE = true
BREAK_ONLY_BEFORE = Date
BREAK_ONLY_BEFORE = ###_End_Of_Mail_Message_###

you can also do this by the source as well,

props.conf
[source::Email]
SHOULD_LINEMERGE = true
BREAK_ONLY_BEFORE = Date
BREAK_ONLY_BEFORE = ###_End_Of_Mail_Message_###

That being said, you can only use 1 break_only_before block. If you want to do "or" type clauses, use the "|" delimiter

(Date)|(###_End_Of_Mail_Message_###)

or did you mean to type:

BREAK_ONLY_AFTER = ###_End_Of_Mail_Message_###
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!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...