Hi guys !!

You all know that for creating any dashboards, reports , alerts etc. in Splunk we need some events. It is the responsibility of Splunk Developers. But for on-boarding, parsing  and filtering some  data in Splunk you have to be confident  in handling the configurations files. For parsing some data we use props.conf and also we do parsing on the Heavy Forwarder(HF).Today we will show you how to break the events using BREAK_ONLY_BEFORE attribute. You have to use this attribute inside  props.conf. You can find the props.conf in following path.


After that you have to configure the props.conf.

If you are using stand-alone system you can configure props.conf at the time of adding data into Splunk from the GUI.

See below we have given a sample data.

how  are  you?
i am fine.
also how you feel?
are you speak in english
however are you feel
i send pic to you

We have saved this data into a file.

Follow the below steps :

Step 1:

Login to Splunk by your credentials.

Step 2:

You can see the Add Data option on the middle of the screen. Click on Add Data.

Step 3:

Select the method. We will upload some data from our local system. So click on Upload.

Step 4:

Click on Select File.

Step 5:

Select the file you want to upload. Here we have selected the file where we had saved our sample data. Click on Open.

Step 6:

After uploading the data click on Next.

Step 7:

Now you can Advanced option on the left side. Click on Advanced to configure props.conf. From here whatever you will write that will be saved in the props.conf file in the back end.

Step 8:

Now write attributes in Advanced option. How to use this command you can see below.­ Click on Apply settings.


Here we have written MUST_BREAK_AFTER = how and SHOULD_LINEMERGE = true then which line contain string ‘how’ , from the next  line it will be broken into another event. It will not break in middle of the line where it founds “how”.

But if the string which I have given means “how” is not there , that line or after that all  lines will be in  same event until it gets a event which contains “how”.

NOTE: Use of hard-code value is not good. Because if some portion of any word matches with specified string then also it will work as above discussed manner. And then the attribute break upon it’s policy. So be careful when use hard code value.

Here we take a string say how whenever  this string is matched then the line will be  break upon it’s  policy. Suppose a string however is coming in line then also this attribute will be working because how is also a part of “however”. 

Hope, this has helped you in achieving the below requirement without fail:



Happy Splunking  !!


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.