<?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: oneshot json | kvmode is incorrect in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-oneshot-json-Why-is-kvmode-incorrect/m-p/617427#M106604</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;that seems like a really obvious solution now you say it. Referencing the &lt;A title="List of pretrained sourcetypes" href="https://docs.splunk.com/Documentation/Splunk/9.0.1/Data/Listofpretrainedsourcetypes" target="_self"&gt;docs&lt;/A&gt; I think therefore I should trial:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;_json&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;json_no_timestamp&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;I appreciate the feedback and I will let you and the community know. The obvious drawback here is that you can't use a custom sourcetype per the client environment but I suppose oneshot is not designed for scale and batch or monitor should be used for the sustainable solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Oct 2022 19:36:19 GMT</pubDate>
    <dc:creator>NullZero</dc:creator>
    <dc:date>2022-10-17T19:36:19Z</dc:date>
    <item>
      <title>Help with oneshot json: Why is | kvmode incorrect?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-oneshot-json-Why-is-kvmode-incorrect/m-p/617379#M106595</link>
      <description>&lt;P&gt;I'm using a distributed Splunk Enterprise environment with over 15 peers at the Indexer Tier.&amp;nbsp; I have some JSON data in a small file less than 500KB and I'm confident that the JSON is parsed correctly and this has been verified in Python with a simple check script.&lt;/P&gt;
&lt;P&gt;issued command:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;./splunk add oneshot "/tmp/&amp;lt;file.json&amp;gt;" -sourcetype xxxx:xxxx -index &amp;lt;index&amp;gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;The command completes and the data is ingested.&lt;/P&gt;
&lt;P&gt;However, it has parsed as an event per line and not as JSON. Obviously in props.conf the default is not set for 'KV_MODE = json'. There is no option in the CLI when using oneshot to set as JSON.&lt;/P&gt;
&lt;P&gt;Any thoughts or guidance please. I am a certified Splunk PS consultant but everyday brings something new for all of us right.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 16:22:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-oneshot-json-Why-is-kvmode-incorrect/m-p/617379#M106595</guid>
      <dc:creator>NullZero</dc:creator>
      <dc:date>2022-10-19T16:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: oneshot json | kvmode is incorrect</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-oneshot-json-Why-is-kvmode-incorrect/m-p/617388#M106599</link>
      <description>&lt;P&gt;The sourcetype specified in the oneshot command should be one that properly processes JSON.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 16:55:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-oneshot-json-Why-is-kvmode-incorrect/m-p/617388#M106599</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-10-17T16:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: oneshot json | kvmode is incorrect</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-oneshot-json-Why-is-kvmode-incorrect/m-p/617427#M106604</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;that seems like a really obvious solution now you say it. Referencing the &lt;A title="List of pretrained sourcetypes" href="https://docs.splunk.com/Documentation/Splunk/9.0.1/Data/Listofpretrainedsourcetypes" target="_self"&gt;docs&lt;/A&gt; I think therefore I should trial:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;_json&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;json_no_timestamp&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;I appreciate the feedback and I will let you and the community know. The obvious drawback here is that you can't use a custom sourcetype per the client environment but I suppose oneshot is not designed for scale and batch or monitor should be used for the sustainable solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 19:36:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-oneshot-json-Why-is-kvmode-incorrect/m-p/617427#M106604</guid>
      <dc:creator>NullZero</dc:creator>
      <dc:date>2022-10-17T19:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: oneshot json | kvmode is incorrect</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-oneshot-json-Why-is-kvmode-incorrect/m-p/617533#M106618</link>
      <description>&lt;P&gt;The following did ingest the data as JSON, and provide KV pairs:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;/splunk add oneshot "/tmp/&amp;lt;file.json&amp;gt;" -sourcetype _json -index &amp;lt;index&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 14:03:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-oneshot-json-Why-is-kvmode-incorrect/m-p/617533#M106618</guid>
      <dc:creator>NullZero</dc:creator>
      <dc:date>2022-10-18T14:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help with oneshot json: Why is | kvmode incorrect?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Help-with-oneshot-json-Why-is-kvmode-incorrect/m-p/698451#M115792</link>
      <description>&lt;P&gt;We need to keep in mind that KV_MODE applies to search time only and the field extractons ae best to be done at search time.&amp;nbsp; Therefore, at index time if you have the following parameters set you should be good.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;P&gt;[sourcetypename]&lt;BR /&gt;LINE_BREAKER&lt;BR /&gt;TIME_PREFIX&lt;BR /&gt;MAX_TIMESTAMP_LOOKAHEAD&lt;BR /&gt;TIME_FORMAT&lt;BR /&gt;TRUNCATE&lt;BR /&gt;SHOULD_LINEMERGE = false # LINE_BREAKER should be properly set so you can keep SHOULD_LINEMERGE = false&lt;BR /&gt;NO_BINARY_CHECK = true&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Sep 2024 16:27:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Help-with-oneshot-json-Why-is-kvmode-incorrect/m-p/698451#M115792</guid>
      <dc:creator>anwarmian</dc:creator>
      <dc:date>2024-09-07T16:27:21Z</dc:date>
    </item>
  </channel>
</rss>

