Getting Data In

Can you tell me what I am doing wrong with my props.conf for this JSON file?

daniel333
Builder

All,

I have the following little JSON dump which works perfectly out of the box. But for best practices I was writing out my entire props.conf.

[root@SERVER bin]# ./callstatus.sh 
{
   "current": {
      "health": 1,
      "subject": "Facebook Platform is Healthy"
   },
   "push": {
      "status": "Complete",
      "updated": "2016-07-05T15:58:37-07:00",
      "id": 61595219
   }

When I set this, it works fine.

[facebook:curl:status]
# Index time extractions
KV_MODE=json

But once I add the CURRENT to the time the event gets weirdly line broken.

[facebook:curl:status]
# Index time extractions
KV_MODE=json
DATETIME_CONFIG=CURRENT

Any ideas why DATETIME_CONFIG=CURRENT is breaking it?

0 Karma
1 Solution

woodcock
Esteemed Legend

This is documented:

http://docs.splunk.com/Documentation/Splunk/6.4.1/Data/Configuretimestamprecognition

Note: Both CURRENT and NONE explicitly disable timestamp identification, so the default event boundary detection (BREAK_ONLY_BEFORE_DATE = true) is likely not to work as desired.
When using these settings, use SHOULD_LINEMERGE and/or the BREAK_ONLY_* , MUST_BREAK_* settings to control event merging.

View solution in original post

woodcock
Esteemed Legend

This is documented:

http://docs.splunk.com/Documentation/Splunk/6.4.1/Data/Configuretimestamprecognition

Note: Both CURRENT and NONE explicitly disable timestamp identification, so the default event boundary detection (BREAK_ONLY_BEFORE_DATE = true) is likely not to work as desired.
When using these settings, use SHOULD_LINEMERGE and/or the BREAK_ONLY_* , MUST_BREAK_* settings to control event merging.
Get Updates on the Splunk Community!

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...