<?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: Splunk duplicates events from a custom-made JSON event file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-duplicates-events-from-a-custom-made-JSON-event-file/m-p/562547#M100191</link>
    <description>&lt;P&gt;Here you go:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vyber90_0-1628493736339.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15468i80C9213304CDA743/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vyber90_0-1628493736339.png" alt="Vyber90_0-1628493736339.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In order to not change JSON's original stuff I created this new sourcetype. The lines I've manually added are &lt;EM&gt;TRUNCATE&lt;/EM&gt; and &lt;EM&gt;followTail&lt;/EM&gt; (the last one was added as a solution proposed in this very thread).&lt;/P&gt;</description>
    <pubDate>Mon, 09 Aug 2021 07:24:11 GMT</pubDate>
    <dc:creator>Vyber90</dc:creator>
    <dc:date>2021-08-09T07:24:11Z</dc:date>
    <item>
      <title>Splunk duplicates events from a custom-made JSON event file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-duplicates-events-from-a-custom-made-JSON-event-file/m-p/561600#M100055</link>
      <description>&lt;P&gt;What I'm doing is: I am doing stuff by my own an then parsing all the information as a JSON in order to append it to the end of an Splunk indexed file.&lt;/P&gt;&lt;P&gt;The problem is: Splunk, instead of just adding the information that wasn't there when the file was last updated, adds all the information again as if it was completely new, and thus giving me duplicate information.&lt;/P&gt;&lt;P&gt;I tried to append the information without altering what was already there, but this doesn't seem to solve anything. What would you do to only add the new info?&lt;/P&gt;</description>
      <pubDate>Sat, 31 Jul 2021 17:32:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-duplicates-events-from-a-custom-made-JSON-event-file/m-p/561600#M100055</guid>
      <dc:creator>Vyber90</dc:creator>
      <dc:date>2021-07-31T17:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk duplicates events from a custom-made JSON event file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-duplicates-events-from-a-custom-made-JSON-event-file/m-p/561606#M100056</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/235822"&gt;@Vyber90&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;If you are parsing JSON by yourself, you should disable automatic KV extraction of Splunk.&lt;/P&gt;&lt;P&gt;You can disable it by adding KV_MODE = none into your sourcetype.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[your_sourcetype]
KV_MODE = none&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 01 Aug 2021 04:55:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-duplicates-events-from-a-custom-made-JSON-event-file/m-p/561606#M100056</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-08-01T04:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk duplicates events from a custom-made JSON event file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-duplicates-events-from-a-custom-made-JSON-event-file/m-p/562470#M100186</link>
      <description>&lt;P&gt;I'm sorry to tell you that it doesn't work for me (I put that line in a new sourcetype in the props.conf file, where I think it should go).&lt;/P&gt;&lt;P&gt;As I said, I put that line in and it was today that I added information after the latest event of the JSON. As I said in the question, now instead of 7 events (6 + the new event), I have 13 (6 events + their 6 duplicate events + the new event).&lt;/P&gt;&lt;P&gt;By the way, I don't know if this is obvious or not, so I'll tell you this piece of information.&lt;/P&gt;&lt;P&gt;Duplicate events would look like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vyber90_0-1628279664492.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15460i538BAD49060F3FC9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vyber90_0-1628279664492.png" alt="Vyber90_0-1628279664492.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The duplicated events are carbon copies. They have the same information, the same timestamps, the same quantity of lines, and they do even filter out when using dedup.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 19:58:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-duplicates-events-from-a-custom-made-JSON-event-file/m-p/562470#M100186</guid>
      <dc:creator>Vyber90</dc:creator>
      <dc:date>2021-08-06T19:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk duplicates events from a custom-made JSON event file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-duplicates-events-from-a-custom-made-JSON-event-file/m-p/562513#M100189</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/235822"&gt;@Vyber90&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you add the below config in the inputs.conf file for your stanza?&lt;/P&gt;&lt;PRE&gt;followTail = 1&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;ReF:&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/duplicated-events-when-monitoring-from-log-file/m-p/19337" target="_self"&gt;Splunk Ans&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check props and conf of followTail here:&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/Inputsconf" target="_self"&gt;Inputsconf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you find my solution/debugging steps fruitful, an upvote would be appreciated.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Aug 2021 13:16:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-duplicates-events-from-a-custom-made-JSON-event-file/m-p/562513#M100189</guid>
      <dc:creator>jhanvidattani</dc:creator>
      <dc:date>2021-08-08T13:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk duplicates events from a custom-made JSON event file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-duplicates-events-from-a-custom-made-JSON-event-file/m-p/562540#M100190</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/235822"&gt;@Vyber90&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I thought you were seeing duplicate fields on Interesting Fields, but you see duplicate raw events. Could you please share your inputs.conf for that json file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 06:59:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-duplicates-events-from-a-custom-made-JSON-event-file/m-p/562540#M100190</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-08-09T06:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk duplicates events from a custom-made JSON event file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-duplicates-events-from-a-custom-made-JSON-event-file/m-p/562547#M100191</link>
      <description>&lt;P&gt;Here you go:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vyber90_0-1628493736339.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/15468i80C9213304CDA743/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vyber90_0-1628493736339.png" alt="Vyber90_0-1628493736339.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In order to not change JSON's original stuff I created this new sourcetype. The lines I've manually added are &lt;EM&gt;TRUNCATE&lt;/EM&gt; and &lt;EM&gt;followTail&lt;/EM&gt; (the last one was added as a solution proposed in this very thread).&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 07:24:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-duplicates-events-from-a-custom-made-JSON-event-file/m-p/562547#M100191</guid>
      <dc:creator>Vyber90</dc:creator>
      <dc:date>2021-08-09T07:24:11Z</dc:date>
    </item>
  </channel>
</rss>

