Getting Data In

How to edit props.conf in order to have JSON log events listed in chronological order?

Path Finder

We have the following logs coming into Splunk:


Assume there are lots more log lines in that stack, how do we end up with the following in Splunk as one final log line?


Note how the final log line has been put into chronological order.

Here is my Props.conf that I have set up:

#TIME_FORMAT = %Y-%m-%d %H:%M:%S,%3N
LINE_BREAKER = ([\r\n]+)
# 10000 is default, should be set on a case by case basis
# comment this line if they need to use PUNCT
0 Karma


I am not clear about what you want. In the first block, you show several lines of JSON logs. What is the criteria for defining an event? Do all the lines in the block belong in the same event? Do all the lines in the file belong together as one event? Do you ever want to select certain lines or perform statistical analysis on the data?

If all you want is for the data to appear in chronological order, remember that Splunk search always returns the newest events first. The underlying search actually works from newer to older data as it retrieves the data. The default is for Splunk to display the search results in this reverse chronological order. But the ordering is a function of the search, not the parsing. You can specify that you want the search results displayed in chronological order, by appending | reverse to the end of any search. Be aware that this may make the search take much longer, and consume much more memory and CPU.

0 Karma