<?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: One record, two values per field? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/One-record-two-values-per-field/m-p/498832#M85041</link>
    <description>&lt;P&gt;Here's the results of the btool command; I don't know how to parse this, hope you can let me know if there's anything pertinent:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/Applications/Splunk/etc/apps/search/local/props.conf [dateTimeJSON]
/Applications/Splunk/etc/system/default/props.conf    ADD_EXTRA_TIME_FIELDS = True
/Applications/Splunk/etc/system/default/props.conf    ANNOTATE_PUNCT = True
/Applications/Splunk/etc/system/default/props.conf    AUTO_KV_JSON = true
/Applications/Splunk/etc/system/default/props.conf    BREAK_ONLY_BEFORE = 
/Applications/Splunk/etc/system/default/props.conf    BREAK_ONLY_BEFORE_DATE = True
/Applications/Splunk/etc/system/default/props.conf    CHARSET = UTF-8
/Applications/Splunk/etc/apps/search/local/props.conf DATETIME_CONFIG = 
/Applications/Splunk/etc/system/default/props.conf    DEPTH_LIMIT = 1000
/Applications/Splunk/etc/system/default/props.conf    HEADER_MODE = 
/Applications/Splunk/etc/apps/search/local/props.conf INDEXED_EXTRACTIONS = json
/Applications/Splunk/etc/system/default/props.conf    LEARN_MODEL = true
/Applications/Splunk/etc/system/default/props.conf    LEARN_SOURCETYPE = true
/Applications/Splunk/etc/apps/search/local/props.conf LINE_BREAKER = ([\r\n]+)
/Applications/Splunk/etc/system/default/props.conf    LINE_BREAKER_LOOKBEHIND = 100
/Applications/Splunk/etc/system/default/props.conf    MATCH_LIMIT = 100000
/Applications/Splunk/etc/system/local/props.conf      MAX_DAYS_AGO = 5000
/Applications/Splunk/etc/system/default/props.conf    MAX_DAYS_HENCE = 2
/Applications/Splunk/etc/system/default/props.conf    MAX_DIFF_SECS_AGO = 3600
/Applications/Splunk/etc/system/default/props.conf    MAX_DIFF_SECS_HENCE = 604800
/Applications/Splunk/etc/system/default/props.conf    MAX_EVENTS = 256
/Applications/Splunk/etc/system/default/props.conf    MAX_TIMESTAMP_LOOKAHEAD = 128
/Applications/Splunk/etc/system/default/props.conf    MUST_BREAK_AFTER = 
/Applications/Splunk/etc/system/default/props.conf    MUST_NOT_BREAK_AFTER = 
/Applications/Splunk/etc/system/default/props.conf    MUST_NOT_BREAK_BEFORE = 
/Applications/Splunk/etc/apps/search/local/props.conf NO_BINARY_CHECK = true
/Applications/Splunk/etc/system/default/props.conf    SEGMENTATION = indexing
/Applications/Splunk/etc/system/default/props.conf    SEGMENTATION-all = full
/Applications/Splunk/etc/system/default/props.conf    SEGMENTATION-inner = inner
/Applications/Splunk/etc/system/default/props.conf    SEGMENTATION-outer = outer
/Applications/Splunk/etc/system/default/props.conf    SEGMENTATION-raw = none
/Applications/Splunk/etc/system/default/props.conf    SEGMENTATION-standard = standard
/Applications/Splunk/etc/system/default/props.conf    SHOULD_LINEMERGE = True
/Applications/Splunk/etc/apps/search/local/props.conf TIMESTAMP_FIELDS = DateDeleted
/Applications/Splunk/etc/system/default/props.conf    TRANSFORMS = 
/Applications/Splunk/etc/system/default/props.conf    TRUNCATE = 10000
/Applications/Splunk/etc/apps/search/local/props.conf category = Structured
/Applications/Splunk/etc/apps/search/local/props.conf description = Get the right date from record with multiple dates included.
/Applications/Splunk/etc/system/default/props.conf    detect_trailing_nulls = false
/Applications/Splunk/etc/apps/search/local/props.conf disabled = false
/Applications/Splunk/etc/system/default/props.conf    maxDist = 100
/Applications/Splunk/etc/system/default/props.conf    priority = 
/Applications/Splunk/etc/apps/search/local/props.conf pulldown_type = 1
/Applications/Splunk/etc/system/default/props.conf    sourcetype = 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 30 Jan 2020 15:19:16 GMT</pubDate>
    <dc:creator>aaron_sakovich</dc:creator>
    <dc:date>2020-01-30T15:19:16Z</dc:date>
    <item>
      <title>One record, two values per field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/One-record-two-values-per-field/m-p/498825#M85034</link>
      <description>&lt;P&gt;We've been acquiring data for some time now via manual imports with CSV files. We're finishing up the process of automating that by importing JSON on a cron schedule. So far, it's been going simply great. Today, we hit a snag.&lt;BR /&gt;
We have a source that has multiple date or date-time fields in it, so in order to ensure we get the right field to be used as the timestamp, we created a new sourcetype called dateTimeJSON that specifies the TimeStamp field as "DateDeleted", the field we're looking for.&lt;BR /&gt;
If we search the index, we see the data and the correct number of event counts (13 in this test case). However, when we look at the data in a table, each field has two values in it -- this results in double the results in all of our searches and dashboards. Here's what we see from a search as simple as "index=koha_dcards":&lt;BR /&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/8305i09749CD0C52C250B/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
What the heck can even cause something like this? How do we rectify it? All of our other indices and data inputs have never had a problem like this, and we've had to spec fields in the sourcetype before without issue.&lt;BR /&gt;
I'm gobsmacked...&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 20:49:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/One-record-two-values-per-field/m-p/498825#M85034</guid>
      <dc:creator>aaron_sakovich</dc:creator>
      <dc:date>2020-01-29T20:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: One record, two values per field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/One-record-two-values-per-field/m-p/498826#M85035</link>
      <description>&lt;P&gt;Can you share the props.conf stanza for that sourcetype?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 22:15:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/One-record-two-values-per-field/m-p/498826#M85035</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-01-29T22:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: One record, two values per field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/One-record-two-values-per-field/m-p/498827#M85036</link>
      <description>&lt;P&gt;Does the raw data in the source CSV file (assuming you have access to it) has single values in them? If yes, then it looks like the field extraction is done twice for that sourcetype. As @richgalloway suggested, find all props.conf stanza setup for that sourcetype, so we can see if there are any duplicate configurations for field extractions (could be the case where both indextime and search time field extraction is setup).&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 22:41:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/One-record-two-values-per-field/m-p/498827#M85036</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-01-29T22:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: One record, two values per field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/One-record-two-values-per-field/m-p/498828#M85037</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; [dateTimeJSON]
DATETIME_CONFIG = 
INDEXED_EXTRACTIONS = json
LINE_BREAKER = ([\r\n]+)
NO_BINARY_CHECK = true
TIMESTAMP_FIELDS = DateDeleted
category = Structured
description = Get the right date from record with multiple dates included.
disabled = false
pulldown_type = 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Jan 2020 22:41:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/One-record-two-values-per-field/m-p/498828#M85037</guid>
      <dc:creator>aaron_sakovich</dc:creator>
      <dc:date>2020-01-29T22:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: One record, two values per field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/One-record-two-values-per-field/m-p/498829#M85038</link>
      <description>&lt;P&gt;Yes, all the CSV data which goes back 1 year have single entries. Only the JSON we input today is duplicated. I was only able to find the one props.conf with [dateTimeJSON] in it, in etc/apps/search/local/.&lt;BR /&gt;
Should also mention, 8.0.1.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 22:55:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/One-record-two-values-per-field/m-p/498829#M85038</guid>
      <dc:creator>aaron_sakovich</dc:creator>
      <dc:date>2020-01-29T22:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: One record, two values per field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/One-record-two-values-per-field/m-p/498830#M85039</link>
      <description>&lt;P&gt;I have the same issue when it comes to JSON from our Azure blob. &lt;CODE&gt;_raw&lt;/CODE&gt; will only indicate one field for one value but the extracted fields  has double values for the single event.  Only when I eval the field to rename does my reports remove the duplicate values. I only have one stanza per `sourcetype' as well. &lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 00:21:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/One-record-two-values-per-field/m-p/498830#M85039</guid>
      <dc:creator>jscraig2006</dc:creator>
      <dc:date>2020-01-30T00:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: One record, two values per field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/One-record-two-values-per-field/m-p/498831#M85040</link>
      <description>&lt;P&gt;not sure if something is different with 8.x, but this typically means that KV_MODE=json is set for this sourcetype somehow.   So you the fields get indexed with indexed_extractions setting but then also extracted at search time with the kv_mode setting.&lt;/P&gt;

&lt;P&gt;maybe at least rule it out with btool on your search head??&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk btool props list dateTimeJSON --debug
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And if not set on the sourcetype, maybe make sure it's not set in props for the source/host either?  &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:57:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/One-record-two-values-per-field/m-p/498831#M85040</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2020-09-30T03:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: One record, two values per field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/One-record-two-values-per-field/m-p/498832#M85041</link>
      <description>&lt;P&gt;Here's the results of the btool command; I don't know how to parse this, hope you can let me know if there's anything pertinent:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/Applications/Splunk/etc/apps/search/local/props.conf [dateTimeJSON]
/Applications/Splunk/etc/system/default/props.conf    ADD_EXTRA_TIME_FIELDS = True
/Applications/Splunk/etc/system/default/props.conf    ANNOTATE_PUNCT = True
/Applications/Splunk/etc/system/default/props.conf    AUTO_KV_JSON = true
/Applications/Splunk/etc/system/default/props.conf    BREAK_ONLY_BEFORE = 
/Applications/Splunk/etc/system/default/props.conf    BREAK_ONLY_BEFORE_DATE = True
/Applications/Splunk/etc/system/default/props.conf    CHARSET = UTF-8
/Applications/Splunk/etc/apps/search/local/props.conf DATETIME_CONFIG = 
/Applications/Splunk/etc/system/default/props.conf    DEPTH_LIMIT = 1000
/Applications/Splunk/etc/system/default/props.conf    HEADER_MODE = 
/Applications/Splunk/etc/apps/search/local/props.conf INDEXED_EXTRACTIONS = json
/Applications/Splunk/etc/system/default/props.conf    LEARN_MODEL = true
/Applications/Splunk/etc/system/default/props.conf    LEARN_SOURCETYPE = true
/Applications/Splunk/etc/apps/search/local/props.conf LINE_BREAKER = ([\r\n]+)
/Applications/Splunk/etc/system/default/props.conf    LINE_BREAKER_LOOKBEHIND = 100
/Applications/Splunk/etc/system/default/props.conf    MATCH_LIMIT = 100000
/Applications/Splunk/etc/system/local/props.conf      MAX_DAYS_AGO = 5000
/Applications/Splunk/etc/system/default/props.conf    MAX_DAYS_HENCE = 2
/Applications/Splunk/etc/system/default/props.conf    MAX_DIFF_SECS_AGO = 3600
/Applications/Splunk/etc/system/default/props.conf    MAX_DIFF_SECS_HENCE = 604800
/Applications/Splunk/etc/system/default/props.conf    MAX_EVENTS = 256
/Applications/Splunk/etc/system/default/props.conf    MAX_TIMESTAMP_LOOKAHEAD = 128
/Applications/Splunk/etc/system/default/props.conf    MUST_BREAK_AFTER = 
/Applications/Splunk/etc/system/default/props.conf    MUST_NOT_BREAK_AFTER = 
/Applications/Splunk/etc/system/default/props.conf    MUST_NOT_BREAK_BEFORE = 
/Applications/Splunk/etc/apps/search/local/props.conf NO_BINARY_CHECK = true
/Applications/Splunk/etc/system/default/props.conf    SEGMENTATION = indexing
/Applications/Splunk/etc/system/default/props.conf    SEGMENTATION-all = full
/Applications/Splunk/etc/system/default/props.conf    SEGMENTATION-inner = inner
/Applications/Splunk/etc/system/default/props.conf    SEGMENTATION-outer = outer
/Applications/Splunk/etc/system/default/props.conf    SEGMENTATION-raw = none
/Applications/Splunk/etc/system/default/props.conf    SEGMENTATION-standard = standard
/Applications/Splunk/etc/system/default/props.conf    SHOULD_LINEMERGE = True
/Applications/Splunk/etc/apps/search/local/props.conf TIMESTAMP_FIELDS = DateDeleted
/Applications/Splunk/etc/system/default/props.conf    TRANSFORMS = 
/Applications/Splunk/etc/system/default/props.conf    TRUNCATE = 10000
/Applications/Splunk/etc/apps/search/local/props.conf category = Structured
/Applications/Splunk/etc/apps/search/local/props.conf description = Get the right date from record with multiple dates included.
/Applications/Splunk/etc/system/default/props.conf    detect_trailing_nulls = false
/Applications/Splunk/etc/apps/search/local/props.conf disabled = false
/Applications/Splunk/etc/system/default/props.conf    maxDist = 100
/Applications/Splunk/etc/system/default/props.conf    priority = 
/Applications/Splunk/etc/apps/search/local/props.conf pulldown_type = 1
/Applications/Splunk/etc/system/default/props.conf    sourcetype = 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Jan 2020 15:19:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/One-record-two-values-per-field/m-p/498832#M85041</guid>
      <dc:creator>aaron_sakovich</dc:creator>
      <dc:date>2020-01-30T15:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: One record, two values per field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/One-record-two-values-per-field/m-p/498833#M85042</link>
      <description>&lt;P&gt;Yeah, i would suggest setting AUTO_KV_JSON=false for your sourcetype as well.&lt;/P&gt;

&lt;P&gt;From the docs....&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;AUTO_KV_JSON = &amp;lt;boolean&amp;gt;
* Used for search-time field extractions only.
* Specifies whether to try json extraction automatically.
* Default: true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:58:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/One-record-two-values-per-field/m-p/498833#M85042</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2020-09-30T03:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: One record, two values per field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/One-record-two-values-per-field/m-p/498834#M85043</link>
      <description>&lt;P&gt;Would this setting have any pertinence? Should it be "none" instead of "json"? Will that accomplish the same as setting the AUTO_KV_JSON, but for this one sourcetype only?&lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/279781-screen-shot-2020-01-30-at-093803.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:58:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/One-record-two-values-per-field/m-p/498834#M85043</guid>
      <dc:creator>aaron_sakovich</dc:creator>
      <dc:date>2020-09-30T03:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: One record, two values per field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/One-record-two-values-per-field/m-p/498835#M85044</link>
      <description>&lt;P&gt;You can certainly try to set indexed extractions to none.  That may affect other things you are configuring though, like the Timestamp fields.  Because if you don't have those fields when the data is ingested into Splunk, you probably can't reference it like you're doing now as the timestamp field.  Indexed Extractions is sort of an easy button for parsing data (getting data into Splunk)&lt;/P&gt;

&lt;P&gt;The other option would be to set the auto kv json setting to false for this sourcetype in props.conf.  This would just turn off the extractions that try to run at search time.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[dateTimeJSON]
AUTO_KV_JSON = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you understand parse time and search time yet, i'd just suggest reading this wiki article&lt;/P&gt;

&lt;P&gt;&lt;A href="https://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings%3F"&gt;https://wiki.splunk.com/Where_do_I_configure_my_Splunk_settings%3F&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 19:21:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/One-record-two-values-per-field/m-p/498835#M85044</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2020-01-30T19:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: One record, two values per field?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/One-record-two-values-per-field/m-p/498836#M85045</link>
      <description>&lt;P&gt;Adding that one line to the local/props.conf worked. Thanks!!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 20:22:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/One-record-two-values-per-field/m-p/498836#M85045</guid>
      <dc:creator>aaron_sakovich</dc:creator>
      <dc:date>2020-01-30T20:22:14Z</dc:date>
    </item>
  </channel>
</rss>

