<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: indexed_extractions=json not working for FIFO file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/indexed-extractions-json-not-working-for-FIFO-file/m-p/430873#M75399</link>
    <description>&lt;P&gt;For me it is working fine with indexing data directly not with fifo input (On Splunk 7.2.3) . Can you please let us know which version of splunk are you running?&lt;/P&gt;

&lt;P&gt;I used only below config in props.conf while on boarding the data on my lab.&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mysourcetype]
INDEXED_EXTRACTIONS = JSON
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 14 Mar 2019 13:51:39 GMT</pubDate>
    <dc:creator>harsmarvania57</dc:creator>
    <dc:date>2019-03-14T13:51:39Z</dc:date>
    <item>
      <title>indexed_extractions=json not working for FIFO file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/indexed-extractions-json-not-working-for-FIFO-file/m-p/430870#M75396</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;

&lt;P&gt;In my inputs.conf I am monitoring a fifo file receiving json events.&lt;/P&gt;

&lt;P&gt;Inputs.conf :&lt;BR /&gt;
[fifo:///tmp/a.fifo]&lt;BR /&gt;
disabled=0&lt;BR /&gt;
index=main&lt;BR /&gt;
sourcetype=json_test&lt;/P&gt;

&lt;P&gt;Props.conf :&lt;BR /&gt;
[json_test]&lt;BR /&gt;
INDEXED_EXTRACTIONS=JSON&lt;BR /&gt;
KV_MODE=none&lt;BR /&gt;
AUTO_KV_JSON=false&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;BR /&gt;
TIME_FORMAT=%s.%6N&lt;/P&gt;

&lt;P&gt;I see that all fields are parsed correctly, yet I cannot tstats by none metadata fields.&lt;BR /&gt;
I then tried to add TRANSFORMS-js=test_js to props.conf and have the following stanza in transforms.conf :&lt;/P&gt;

&lt;P&gt;[test_js]&lt;BR /&gt;
REGEX=\"([a-zA-Z0-9_.]+)\":\"([^"]+)\"&lt;BR /&gt;
FORMAT=$1::$2&lt;BR /&gt;
REPEAT_MATCH=true&lt;BR /&gt;
WRITE_META=true&lt;/P&gt;

&lt;P&gt;In this case, I am able to tstats on some json fields. However, this regex does not cover all cases of keys and values of a json line and it seems very redundant to reparse all json fields after INDEXED_EXTRACTIONS=json.&lt;/P&gt;

&lt;P&gt;Any ideas on how to solve this issue ?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:37:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/indexed-extractions-json-not-working-for-FIFO-file/m-p/430870#M75396</guid>
      <dc:creator>moneybox</dc:creator>
      <dc:date>2020-09-29T23:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: indexed_extractions=json not working for FIFO file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/indexed-extractions-json-not-working-for-FIFO-file/m-p/430871#M75397</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Can you please provide some sample data (Please mask sensitive data) ?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 19:24:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/indexed-extractions-json-not-working-for-FIFO-file/m-p/430871#M75397</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-03-13T19:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: indexed_extractions=json not working for FIFO file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/indexed-extractions-json-not-working-for-FIFO-file/m-p/430872#M75398</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Sure, here is a sample line that will go into the fifo file:&lt;BR /&gt;
{"value": "New", "onclick": 123}&lt;/P&gt;

&lt;P&gt;"value" and "onclick" will not be available in a tstats command such as :&lt;/P&gt;

&lt;P&gt;| tstats count where index=main by value&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 13:34:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/indexed-extractions-json-not-working-for-FIFO-file/m-p/430872#M75398</guid>
      <dc:creator>moneybox</dc:creator>
      <dc:date>2019-03-14T13:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: indexed_extractions=json not working for FIFO file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/indexed-extractions-json-not-working-for-FIFO-file/m-p/430873#M75399</link>
      <description>&lt;P&gt;For me it is working fine with indexing data directly not with fifo input (On Splunk 7.2.3) . Can you please let us know which version of splunk are you running?&lt;/P&gt;

&lt;P&gt;I used only below config in props.conf while on boarding the data on my lab.&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mysourcetype]
INDEXED_EXTRACTIONS = JSON
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Mar 2019 13:51:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/indexed-extractions-json-not-working-for-FIFO-file/m-p/430873#M75399</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-03-14T13:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: indexed_extractions=json not working for FIFO file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/indexed-extractions-json-not-working-for-FIFO-file/m-p/430874#M75400</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am using Splunk 7.2.4&lt;/P&gt;

&lt;P&gt;Yes the above configuration works for monitor or batch.&lt;BR /&gt;
It does not work with fifo files though&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 14:12:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/indexed-extractions-json-not-working-for-FIFO-file/m-p/430874#M75400</guid>
      <dc:creator>moneybox</dc:creator>
      <dc:date>2019-03-14T14:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: indexed_extractions=json not working for FIFO file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/indexed-extractions-json-not-working-for-FIFO-file/m-p/430875#M75401</link>
      <description>&lt;P&gt;Yes, reproduced this issue with &lt;CODE&gt;[fifo://...]&lt;/CODE&gt; stanza, it is not honoring &lt;CODE&gt;INDEXED_EXTRACTIONS = JSON&lt;/CODE&gt; and due to that &lt;CODE&gt;value&lt;/CODE&gt; and &lt;CODE&gt;onclick&lt;/CODE&gt; are not indexing as index fields and due to that you can't use &lt;CODE&gt;tstats&lt;/CODE&gt; (Because tstats read data from &lt;CODE&gt;.tsidx&lt;/CODE&gt; files which contains only indexed fields name and data).&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 10:34:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/indexed-extractions-json-not-working-for-FIFO-file/m-p/430875#M75401</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-03-15T10:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: indexed_extractions=json not working for FIFO file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/indexed-extractions-json-not-working-for-FIFO-file/m-p/430876#M75402</link>
      <description>&lt;P&gt;So is it possible to report a bug for splunk ?&lt;BR /&gt;
Any idea how to achieve that ?&lt;BR /&gt;
thanks&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2019 09:21:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/indexed-extractions-json-not-working-for-FIFO-file/m-p/430876#M75402</guid>
      <dc:creator>moneybox</dc:creator>
      <dc:date>2019-03-17T09:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: indexed_extractions=json not working for FIFO file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/indexed-extractions-json-not-working-for-FIFO-file/m-p/430877#M75403</link>
      <description>&lt;P&gt;If you have active splunk support entitlement then you can raise case with splunk support and if they will say that this is expected behavior then I'll suggest to provide docs feedback on props.conf docs page to mention this as fifo input stanza doesn't support &lt;CODE&gt;INDEXED_EXTRACTIONS&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2019 10:40:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/indexed-extractions-json-not-working-for-FIFO-file/m-p/430877#M75403</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-03-17T10:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: indexed_extractions=json not working for FIFO file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/indexed-extractions-json-not-working-for-FIFO-file/m-p/430878#M75404</link>
      <description>&lt;P&gt;I am afraid I use the free license for this project.&lt;BR /&gt;
@harsmarvania57 is it possible for you to open a case ?&lt;/P&gt;

&lt;P&gt;Thnk you very much&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 15:25:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/indexed-extractions-json-not-working-for-FIFO-file/m-p/430878#M75404</guid>
      <dc:creator>moneybox</dc:creator>
      <dc:date>2019-03-19T15:25:50Z</dc:date>
    </item>
  </channel>
</rss>

