<?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: CSV Header Issues in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Any-advice-on-how-to-resolve-multiple-CSV-header-issues/m-p/640001#M16044</link>
    <description>&lt;P&gt;Exactly.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Apr 2023 19:31:36 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2023-04-14T19:31:36Z</dc:date>
    <item>
      <title>Any advice on how to resolve multiple CSV header issues?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Any-advice-on-how-to-resolve-multiple-CSV-header-issues/m-p/639962#M16038</link>
      <description>&lt;P&gt;We are getting multiple errors like this&lt;/P&gt;
&lt;PRE&gt;Corrupt csv header in CSV file , 2 columns with the same name&lt;/PRE&gt;
&lt;P&gt;However we have so many CSV files that finding them will be all but impossible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can someone provide advice on how to find them?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 20:49:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Any-advice-on-how-to-resolve-multiple-CSV-header-issues/m-p/639962#M16038</guid>
      <dc:creator>andrew_burnett</dc:creator>
      <dc:date>2023-04-14T20:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Header Issues</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Any-advice-on-how-to-resolve-multiple-CSV-header-issues/m-p/639996#M16041</link>
      <description>&lt;P&gt;Assuming that your OS is unix/linux, assuming that your CSV files use standard filenaming conventions (i.e. *.csv), assuming that your CSV files are standard with a header on the first line, assuming that the source files still exist, you can use the following CLI commands to identify problematic files:&lt;/P&gt;&lt;P&gt;find ${SPLUNK_HOME}/etc/apps/*/lookups -name *.csv -exec head -1 {} \; | tr ',' '\n' | sort| uniq -d&lt;BR /&gt;&lt;BR /&gt;This will tell you the duplicated field, e.g. "foo".&amp;nbsp; Then take that and do this to find the file (or a small pile to peek through):&lt;BR /&gt;&lt;BR /&gt;for FILE in $(find ${SPLUNK_HOME}/lookups -name *.csv -exec grep -il foo {} \;); do echo ${FILE}; head -1 ${FILE} | tr ',' '\n' | sort | uniq -d; done&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here are some other tips:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;A class="" href="https://community.splunk.com/t5/Splunk-Search/quot-Corrupt-csv-header-quot-how-to-find-the-corrupted-csv/m-p/216102#M63390" target="_blank" rel="noopener"&gt;View solution in original post&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Apr 2023 19:46:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Any-advice-on-how-to-resolve-multiple-CSV-header-issues/m-p/639996#M16041</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2023-04-14T19:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Header Issues</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Any-advice-on-how-to-resolve-multiple-CSV-header-issues/m-p/639999#M16042</link>
      <description>&lt;P&gt;So the first one command, every word it brings back is a duplicated one?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 19:29:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Any-advice-on-how-to-resolve-multiple-CSV-header-issues/m-p/639999#M16042</guid>
      <dc:creator>andrew_burnett</dc:creator>
      <dc:date>2023-04-14T19:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Header Issues</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Any-advice-on-how-to-resolve-multiple-CSV-header-issues/m-p/640001#M16044</link>
      <description>&lt;P&gt;Exactly.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 19:31:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Any-advice-on-how-to-resolve-multiple-CSV-header-issues/m-p/640001#M16044</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2023-04-14T19:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Header Issues</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Any-advice-on-how-to-resolve-multiple-CSV-header-issues/m-p/640002#M16045</link>
      <description>&lt;P&gt;Well see we are trying to find specific keywords, so I know like one I'm trying to test. When I run your second command, it pulls in a ton of CSV files. Checking one, and the word isn't in the CSV header at all?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 19:35:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Any-advice-on-how-to-resolve-multiple-CSV-header-issues/m-p/640002#M16045</guid>
      <dc:creator>andrew_burnett</dc:creator>
      <dc:date>2023-04-14T19:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Header Issues</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Any-advice-on-how-to-resolve-multiple-CSV-header-issues/m-p/640003#M16046</link>
      <description>&lt;P&gt;Oh I see it now, the word is in the CSV file itself. But I'm only concerned with the headers, is that not what the alert means?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 19:36:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Any-advice-on-how-to-resolve-multiple-CSV-header-issues/m-p/640003#M16046</guid>
      <dc:creator>andrew_burnett</dc:creator>
      <dc:date>2023-04-14T19:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: CSV Header Issues</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Any-advice-on-how-to-resolve-multiple-CSV-header-issues/m-p/640004#M16047</link>
      <description>&lt;P&gt;Yes.&amp;nbsp; I updated my answer to help better.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 19:47:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Any-advice-on-how-to-resolve-multiple-CSV-header-issues/m-p/640004#M16047</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2023-04-14T19:47:02Z</dc:date>
    </item>
  </channel>
</rss>

