<?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: Input a CSV in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Input-a-CSV/m-p/104294#M21962</link>
    <description>&lt;P&gt;Since you're specifying your own transform have you tried it without the CHECK_FOR_HEADER attribute in the props.conf?&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 10:03:32 GMT</pubDate>
    <dc:creator>joshd</dc:creator>
    <dc:date>2020-09-28T10:03:32Z</dc:date>
    <item>
      <title>Input a CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Input-a-CSV/m-p/104291#M21959</link>
      <description>&lt;P&gt;I'm trying to index a .CSV, created by tasklist.  &lt;/P&gt;

&lt;P&gt;CVS's headers and fields never get properly recognized and it gets indexed as a whole array: &lt;/P&gt;

&lt;P&gt;"Image Name","PID","Session Name","Session#","Mem Usage","Status","User Name","CPU Time","Window Title"&lt;BR /&gt;&lt;BR /&gt;
"System Idle Process","0","Services","0","24 K","Unknown","NT AUTHORITY    SYSTEM","2:07:39","N/A"&lt;BR /&gt;&lt;BR /&gt;
"System","4","Services","0","300 K","Unknown","N/A","0:00:07","N/A"  "smss.exe","344","Services","0","1,204 K","Unknown","N/A","0:00:00","N/A"  "csrss.exe","448","Services","0","5,028 K","Unknown","N/A","0:00:00","N/A"  "csrss.exe","504","Console","1","3,772 K","Unknown","N/A","0:00:00","N/A"&lt;BR /&gt;&lt;BR /&gt;
"wininit.exe","512","Services","0","4,500 K","Unknown","N/A","0:00:00","N/A"&lt;BR /&gt;&lt;BR /&gt;
"winlogon.exe","540","Console","1","4,476 K","Unknown","N/A","0:00:00","N/A"&lt;BR /&gt;&lt;BR /&gt;
"services.exe","604","Services","0","8,700 K","Unknown","N/A","0:00:02","N/A"&lt;BR /&gt;
"lsass.exe","612","Services","0","13,624 K","Unknown","N/A","0:00:01","N/A"&lt;BR /&gt;&lt;BR /&gt;
"lsm.exe","620","Services","0","6,016 K","Unknown","N/A","0:00:00","N/A"&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;inputs.conf&lt;BR /&gt;&lt;BR /&gt;
[batch://$SPLUNK_HOME\TEMP]&lt;BR /&gt;&lt;BR /&gt;
move_policy = sinkhole&lt;BR /&gt;&lt;BR /&gt;
interval = 60&lt;BR /&gt;&lt;BR /&gt;
source = transformfile&lt;BR /&gt;&lt;BR /&gt;
sourcetype = transformfile&lt;BR /&gt;&lt;BR /&gt;
disabled = 0&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;&lt;BR /&gt;
[source::TRANSFORMFILE]&lt;BR /&gt;&lt;BR /&gt;
CHECK__FOR _HEADER=TRUE&lt;BR /&gt;&lt;BR /&gt;
SHOULD _LINEMERGE = false&lt;BR /&gt;&lt;BR /&gt;
TRANSFORM-transformfile = phy_csv  &lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;&lt;BR /&gt;
[phy_csv]&lt;BR /&gt;&lt;BR /&gt;
DELIMS=","&lt;BR /&gt;&lt;BR /&gt;
FIELDS="Image Name", "PID", "Session Name", "Session#", "Mem Usage", "Status", "User Name", "CPU Time", "Window Title"  &lt;/P&gt;

&lt;P&gt;Any help here?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:03:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Input-a-CSV/m-p/104291#M21959</guid>
      <dc:creator>ofedorov</dc:creator>
      <dc:date>2020-09-28T10:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Input a CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Input-a-CSV/m-p/104292#M21960</link>
      <description>&lt;P&gt;in your props.conf it should be TRANSFORMS-transformfile and not TRANSFORM-transformfile  and it looks like you have two underscores in the CHECK_FOR_HEADER attribute along with a space in the SHOULD_LINE_MERGE attribute&lt;/P&gt;

&lt;P&gt;also you may wish to use the sourcetype stanza when specifying it in props.conf instead of the source stanza&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:03:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Input-a-CSV/m-p/104292#M21960</guid>
      <dc:creator>joshd</dc:creator>
      <dc:date>2020-09-28T10:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Input a CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Input-a-CSV/m-p/104293#M21961</link>
      <description>&lt;P&gt;Thanks for the catch, mate.&lt;BR /&gt;
But that didn't do the trick, indexed data is still in one chunk.&lt;BR /&gt;
Maybe there is a way to strip those quote marks during .cmd output? Then the headers might get recognized properly.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2011 15:44:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Input-a-CSV/m-p/104293#M21961</guid>
      <dc:creator>ofedorov</dc:creator>
      <dc:date>2011-11-04T15:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Input a CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Input-a-CSV/m-p/104294#M21962</link>
      <description>&lt;P&gt;Since you're specifying your own transform have you tried it without the CHECK_FOR_HEADER attribute in the props.conf?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:03:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Input-a-CSV/m-p/104294#M21962</guid>
      <dc:creator>joshd</dc:creator>
      <dc:date>2020-09-28T10:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Input a CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Input-a-CSV/m-p/104295#M21963</link>
      <description>&lt;P&gt;Here's your config files rewritten correcting the minor mistakes, this should work...&lt;/P&gt;

&lt;P&gt;inputs.conf :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[batch://$SPLUNK_HOMETEMP]
move_policy = sinkhole
interval = 60
source = transformfile
sourcetype = transformfile
disabled = 0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[transformfile]
SHOULD_LINEMERGE = false
TRANSFORMS-transformfile = phy_csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[phy_csv]
DELIMS=","
FIELDS="Image Name","PID","Session Name","Session#","Mem Usage","Status","User Name","CPU Time","Window Title"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Nov 2011 16:19:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Input-a-CSV/m-p/104295#M21963</guid>
      <dc:creator>joshd</dc:creator>
      <dc:date>2011-11-04T16:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Input a CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Input-a-CSV/m-p/104296#M21964</link>
      <description>&lt;P&gt;Thanks for the hint, but that didn't work either.&lt;BR /&gt;
With "[batch://$SPLUNK_HOMETEMP]" file never gets picked up - changed to "[batch://$SPLUNK_HOME"bkslash"TEMP]".&lt;BR /&gt;
Output still remains the same v_v&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:03:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Input-a-CSV/m-p/104296#M21964</guid>
      <dc:creator>ofedorov</dc:creator>
      <dc:date>2020-09-28T10:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Input a CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Input-a-CSV/m-p/104297#M21965</link>
      <description>&lt;P&gt;Sorry maybe I'm misunderstanding... your file is never getting indexed to begin with?  Have you tried using a monitor stanza and the crcSalt attribute?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2011 16:39:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Input-a-CSV/m-p/104297#M21965</guid>
      <dc:creator>joshd</dc:creator>
      <dc:date>2011-11-04T16:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Input a CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Input-a-CSV/m-p/104298#M21966</link>
      <description>&lt;P&gt;Oh, no it gets indexed.&lt;BR /&gt;
File is being pulled from TEMP folder all right, but in Splunk it appears as a single chunk of data, never been broken into a table.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2011 17:45:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Input-a-CSV/m-p/104298#M21966</guid>
      <dc:creator>ofedorov</dc:creator>
      <dc:date>2011-11-04T17:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Input a CSV</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Input-a-CSV/m-p/104299#M21967</link>
      <description>&lt;P&gt;I've tried both with and without it - outcome is always the same.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2011 17:46:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Input-a-CSV/m-p/104299#M21967</guid>
      <dc:creator>ofedorov</dc:creator>
      <dc:date>2011-11-04T17:46:48Z</dc:date>
    </item>
  </channel>
</rss>

