Getting Data In

Conf file precedence issue, JSON extraction

apoorvaaj
Engager

props definition is below, when i save it in app\search\local directory it doesn't work as expected{events are not broken properly}.
When saving the same configuration in system\local it works fine.

what am I missing?

[samplejson]
TIME_PREFIX = ("observedTime":")
TIME_FORMAT = %Y-%m-%dT%H:%M:%S
MAX_TIMESTAMP_LOOKAHEAD = 19
LINE_BREAKER = ([\n\r]+){
SHOULD_LINEMERGE = false
TRUNCATE = 0

0 Karma
1 Solution

koshyk
Super Champion

ensure that [samplejson] stanza is not used in another app
The best way you can check is to use debug command on btool

$SPLUNK_HOME/bin/splunk cmd btool props list --debug >/tmp/props.btool.out
$SPLUNK_HOME/bin/splunk cmd btool transforms list --debug >/tmp/transforms.btool.out

And check for the [samplejson] if its coming from your app or somewhere else

View solution in original post

0 Karma

koshyk
Super Champion

ensure that [samplejson] stanza is not used in another app
The best way you can check is to use debug command on btool

$SPLUNK_HOME/bin/splunk cmd btool props list --debug >/tmp/props.btool.out
$SPLUNK_HOME/bin/splunk cmd btool transforms list --debug >/tmp/transforms.btool.out

And check for the [samplejson] if its coming from your app or somewhere else

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...