<?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 parsing and displaying data: What can I do in my source file to make Splunk show just the &amp;quot;Keys&amp;quot; under Interesting fields and not club them with any of the values? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-parsing-and-displaying-data-What-can-I-do-in-my-source/m-p/383993#M7462</link>
    <description>&lt;P&gt;As described, this may be a problem with your csv layout and/or with ingestion. &lt;/P&gt;

&lt;P&gt;Normally, in a csv, the first line establishes the names of the fields.  Any odd characters in the column header are cleaned by splunk and replaced by underscores.  Thus, if you have a column whose header says &lt;CODE&gt;ProductType=abc&lt;/CODE&gt;, that field name will be rendered as &lt;CODE&gt;ProductType_abc&lt;/CODE&gt;.  If you are getting a field named that, and the values are &lt;CODE&gt;ProductType_abc&lt;/CODE&gt;, &lt;CODE&gt;ProductType_xyz&lt;/CODE&gt; and so on, then what you have is not exactly a csv, but a file with key-value pairs that are separated by commas.  &lt;/P&gt;</description>
    <pubDate>Tue, 18 Sep 2018 00:39:36 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2018-09-18T00:39:36Z</dc:date>
    <item>
      <title>Splunk parsing and displaying data: What can I do in my source file to make Splunk show just the "Keys" under Interesting fields and not club them with any of the values?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-parsing-and-displaying-data-What-can-I-do-in-my-source/m-p/383992#M7461</link>
      <description>&lt;P&gt;I am a new user to Splunk Enterprise and have a basic question on how Splunk parses and displays data.&lt;/P&gt;

&lt;P&gt;I am feeding a few .csv files (timestamp, kv pair) as my input. I was hoping that Splunk would automatically detect the "key" and show it as a field on the right hand side (under Interesting Fields). And that's what is happening for the most part, but it is also appending a value with _. e.g. One of the fields is ProductType and it can appear as ProductType=abc, or ProductType=cde or ProductType=xyz. &lt;/P&gt;

&lt;P&gt;What I have noticed is that if there is only one iteration of ProductType=abc and multiple iterations of other two, Splunk will show "ProductType_abc" under "Interesting Fields". But, when I click on it, it does show all three so I can still sort.&lt;/P&gt;

&lt;P&gt;I learned that we can change config files, and also pre-define source fields, but my access is pretty locked down and don't have direct access to config/sys data. Is there anything I can do in my source file that will make Splunk show just the "Keys" under Interesting fields and not club them with any of the values?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 19:58:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-parsing-and-displaying-data-What-can-I-do-in-my-source/m-p/383992#M7461</guid>
      <dc:creator>samsingla</dc:creator>
      <dc:date>2018-09-17T19:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk parsing and displaying data: What can I do in my source file to make Splunk show just the "Keys" under Interesting fields and not club them with any of the values?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-parsing-and-displaying-data-What-can-I-do-in-my-source/m-p/383993#M7462</link>
      <description>&lt;P&gt;As described, this may be a problem with your csv layout and/or with ingestion. &lt;/P&gt;

&lt;P&gt;Normally, in a csv, the first line establishes the names of the fields.  Any odd characters in the column header are cleaned by splunk and replaced by underscores.  Thus, if you have a column whose header says &lt;CODE&gt;ProductType=abc&lt;/CODE&gt;, that field name will be rendered as &lt;CODE&gt;ProductType_abc&lt;/CODE&gt;.  If you are getting a field named that, and the values are &lt;CODE&gt;ProductType_abc&lt;/CODE&gt;, &lt;CODE&gt;ProductType_xyz&lt;/CODE&gt; and so on, then what you have is not exactly a csv, but a file with key-value pairs that are separated by commas.  &lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 00:39:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-parsing-and-displaying-data-What-can-I-do-in-my-source/m-p/383993#M7462</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-09-18T00:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk parsing and displaying data: What can I do in my source file to make Splunk show just the "Keys" under Interesting fields and not club them with any of the values?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-parsing-and-displaying-data-What-can-I-do-in-my-source/m-p/383994#M7463</link>
      <description>&lt;P&gt;Thank you for the answer, it makes sense. I didn't realize that Splunk will look for a csv header even if the data values appear as kv pair. This makes sense now. Is there a recommended extension for a kv pair file (*.txt maybe?).&lt;/P&gt;

&lt;P&gt;And I am hoping if I ingest the exact same file as a *.txt, the "keys" will appear on the right hand side as it is (&lt;CODE&gt;ProductType=abc&lt;/CODE&gt; will appear as &lt;CODE&gt;ProductType&lt;/CODE&gt; and not &lt;CODE&gt;ProductType_abc&lt;/CODE&gt;, even if &lt;CODE&gt;ProductType=abc&lt;/CODE&gt; is in the first line, correct?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 15:10:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-parsing-and-displaying-data-What-can-I-do-in-my-source/m-p/383994#M7463</guid>
      <dc:creator>samsingla</dc:creator>
      <dc:date>2018-09-18T15:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk parsing and displaying data: What can I do in my source file to make Splunk show just the "Keys" under Interesting fields and not club them with any of the values?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-parsing-and-displaying-data-What-can-I-do-in-my-source/m-p/383995#M7464</link>
      <description>&lt;P&gt;The first line is a data line, so yes, any ingestion method that tells the system to extract the kv pairs will work.    Try using the GUI to ingest the data into a test instance, and let splunk walk you thru the process.  You should be able to find the right method pretty quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 18:27:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Splunk-parsing-and-displaying-data-What-can-I-do-in-my-source/m-p/383995#M7464</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-09-20T18:27:44Z</dc:date>
    </item>
  </channel>
</rss>

