<?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: How come my unique JSON event returns duplicate values in a search string? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-come-my-unique-JSON-event-returns-duplicate-values-in-a/m-p/421840#M74174</link>
    <description>&lt;P&gt;Hi justins777,&lt;/P&gt;

&lt;P&gt;check the &lt;CODE&gt;props.conf&lt;/CODE&gt; for the sourcetype and validate that you either use : &lt;BR /&gt;
&lt;CODE&gt;INDEXED_EXTRACTIONS = JSON&lt;/CODE&gt; on the parsing Splunk instance (eq indexer or heavy weight forwarder) &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;OR&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;KV_MODE = json&lt;/CODE&gt; on the search head.&lt;BR /&gt;
Don't use both settings at the same time.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
    <pubDate>Tue, 04 Dec 2018 00:02:29 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2018-12-04T00:02:29Z</dc:date>
    <item>
      <title>How come my unique JSON event returns duplicate values in a search string?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-come-my-unique-JSON-event-returns-duplicate-values-in-a/m-p/421839#M74173</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I have some logging that is ingested through a Splunk agent. A sample log looks like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;{
   "asctime" : "2018-11-30T02:29:19Z+0000",
   "name" : "sloth_start_stop",
   "processName" : "MainProcess",
   "filename" : "sloth_start_stop.py",
   "funcName" : "remove_pending_action_tag",
   "levelname" : "INFO",
   "lineno" : 174,
   "module" : "sloth_start_stop",
   "threadName" : "MainThread",
   "message" : "Removed pending action tag '{'SlothPendingAction': 'start'}' from resource 'i-xxxxxxxxxxxxx'",
   "current_status" : "running",
   "event_time" : "0001-01-01T12:29:00+10:00",
   "resource_id" : "i-xxxxxxxxxxxxxxxxxxxx",
   "event_action" : "SlothPendingAction",
   "lambda_current_time" : "2018-11-30T12:29:14.961459+10:00",
   "event_value" : "12:29+10:00",
   "aws_account_id" : "xxxxxxxxxxx",
   "ami_id" : "ami-xxxxxxxxxxxx",
   "time_zone" : "+10:00",
   "instance_type" : "m4.large",
   "context" :
      {
         "aws_request_id" : "bac8149b-f447-xxxxxxxxxxxxxx",
         "log_stream_name" : "2018/11/29/[$LATEST]e9234dbcfxxxxxxxxxxxxxxx",
         "invoked_function_arn" : "arn:aws:lambda:ap-southeast-2:xxxxxxxxx:function:aws-platform-sloth-start-stop",
         "client_context" : null,
         "log_group_name" : "/aws/lambda/aws-platform-sloth-start-stop",
         "function_name" : "aws-platform-sloth-start-stop",
         "function_version" : "$LATEST",
         "identity" : "&amp;lt;__main__.CognitoIdentity object at xxxxxxx",
         "memory_limit_in_mb" : "128"
      },
   "timestamp" : "2018-11-30T02:29:19Z+0000"
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;when I open the event, it shows duplicate values:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6199iDA16A34BDB93BD2A/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;When i try and create a table:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| table aws_account_id, resource_id, lambda_current_time, levelname
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I also get duplicates in my row:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6200iC0B5A243D9DCC6FA/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;No idea what is going on?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 22:39:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-come-my-unique-JSON-event-returns-duplicate-values-in-a/m-p/421839#M74173</guid>
      <dc:creator>justins777</dc:creator>
      <dc:date>2018-12-03T22:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: How come my unique JSON event returns duplicate values in a search string?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-come-my-unique-JSON-event-returns-duplicate-values-in-a/m-p/421840#M74174</link>
      <description>&lt;P&gt;Hi justins777,&lt;/P&gt;

&lt;P&gt;check the &lt;CODE&gt;props.conf&lt;/CODE&gt; for the sourcetype and validate that you either use : &lt;BR /&gt;
&lt;CODE&gt;INDEXED_EXTRACTIONS = JSON&lt;/CODE&gt; on the parsing Splunk instance (eq indexer or heavy weight forwarder) &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;OR&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;KV_MODE = json&lt;/CODE&gt; on the search head.&lt;BR /&gt;
Don't use both settings at the same time.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 00:02:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-come-my-unique-JSON-event-returns-duplicate-values-in-a/m-p/421840#M74174</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-12-04T00:02:29Z</dc:date>
    </item>
  </channel>
</rss>

