<?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: unarchive_cmd doesn't work for CSV file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/unarchive-cmd-doesn-t-work-for-CSV-file/m-p/154910#M31480</link>
    <description>&lt;P&gt;Here's a more readable version:&lt;/P&gt;

&lt;P&gt;Here is inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/cool_csv_logs/file.csv] 
disabled = 0 
followTail = 0 
host = some_host 
index = scratch 
sourcetype = cool_csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[cool_csv] 
SHOULD_LINEMERGE = false 
pulldown_type = true
INDEXED_EXTRACTIONS = csv
KV_MODE = node
category = Structured
invalid_cause = archive

[source::/var/cool_csv_logs/file.csv]
unarchive_cmd = /opt/splunk/bin/convert.pl
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;... should be changed to &lt;CODE&gt;file.log&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Dec 2014 00:36:17 GMT</pubDate>
    <dc:creator>dmillis</dc:creator>
    <dc:date>2014-12-09T00:36:17Z</dc:date>
    <item>
      <title>unarchive_cmd doesn't work for CSV file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/unarchive-cmd-doesn-t-work-for-CSV-file/m-p/154908#M31478</link>
      <description>&lt;P&gt;In 6.2.0, I have written a pre-processor script for a particular CSV log format, to produce a useable timestamp.  The script is designed to be used as a 'unarchive_cmd' script for the input.  I.e., from the CLI, it functions like this:&lt;BR /&gt;
&lt;CODE&gt;cat  | convert.pl&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The problem: no matter how much I play with inputs.conf and props.conf, the &lt;CODE&gt;unarchive_cmd&lt;/CODE&gt; is ignored.  Here is inputs.conf:&lt;BR /&gt;
&lt;CODE&gt;[monitor:///var/cool_csv_logs/file.csv]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
followTail = 0&lt;BR /&gt;
host = some_host&lt;BR /&gt;
index = scratch&lt;BR /&gt;
sourcetype = cool_csv&lt;/CODE&gt;&lt;BR /&gt;
and props.conf:&lt;BR /&gt;
`[cool_csv]&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
pulldown_type = true&lt;BR /&gt;
INDEXED_EXTRACTIONS = csv&lt;BR /&gt;
KV_MODE = node&lt;BR /&gt;
category = Structured&lt;BR /&gt;
invalid_cause = archive&lt;/P&gt;

&lt;P&gt;[source::/var/cool_csv_logs/file.csv]&lt;BR /&gt;
unarchive_cmd = /opt/splunk/bin/convert.pl`&lt;/P&gt;

&lt;P&gt;Why is the &lt;CODE&gt;unarchive_cmd&lt;/CODE&gt; not working?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:24:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/unarchive-cmd-doesn-t-work-for-CSV-file/m-p/154908#M31478</guid>
      <dc:creator>dmillis</dc:creator>
      <dc:date>2020-09-28T18:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: unarchive_cmd doesn't work for CSV file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/unarchive-cmd-doesn-t-work-for-CSV-file/m-p/154909#M31479</link>
      <description>&lt;P&gt;Well, David, it turns out that you cannot use a file suffix of &lt;CODE&gt;.csv&lt;/CODE&gt; (or &lt;CODE&gt;.txt&lt;/CODE&gt;) with unarchive_cmd.&lt;/P&gt;

&lt;P&gt;Try changing your source filename to &lt;CODE&gt;file.log&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;(This works!)&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2014 00:03:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/unarchive-cmd-doesn-t-work-for-CSV-file/m-p/154909#M31479</guid>
      <dc:creator>dmillis</dc:creator>
      <dc:date>2014-12-09T00:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: unarchive_cmd doesn't work for CSV file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/unarchive-cmd-doesn-t-work-for-CSV-file/m-p/154910#M31480</link>
      <description>&lt;P&gt;Here's a more readable version:&lt;/P&gt;

&lt;P&gt;Here is inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/cool_csv_logs/file.csv] 
disabled = 0 
followTail = 0 
host = some_host 
index = scratch 
sourcetype = cool_csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[cool_csv] 
SHOULD_LINEMERGE = false 
pulldown_type = true
INDEXED_EXTRACTIONS = csv
KV_MODE = node
category = Structured
invalid_cause = archive

[source::/var/cool_csv_logs/file.csv]
unarchive_cmd = /opt/splunk/bin/convert.pl
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;... should be changed to &lt;CODE&gt;file.log&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2014 00:36:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/unarchive-cmd-doesn-t-work-for-CSV-file/m-p/154910#M31480</guid>
      <dc:creator>dmillis</dc:creator>
      <dc:date>2014-12-09T00:36:17Z</dc:date>
    </item>
  </channel>
</rss>

