<?xml version="1.0" ?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
	<channel>
		<title>Splunk Base : SplunkAdministration : #2828</title>
		<link>http://www.splunk.com/support/forum:SplunkAdministration/2828</link>
		<description></description>
		<pubDate>Mon, 13 Feb 2012 19:37:33 PST</pubDate>
		<lastBuildDate>Mon, 13 Feb 2012 19:37:33 PST</lastBuildDate>
		<language>en-us</language>
		<copyright>http://creativecommons.org/licenses/by-nc-nd/2.5/</copyright>
		<item>
			<title>CSV files with headers.</title>
			<link>http://www.splunk.com/support/forum:SplunkAdministration/2828/9057</link>
			<description>&lt;p&gt;Put this in props.conf:&lt;/p&gt;


&lt;div class=&quot;wikiCode&quot;&gt;&lt;pre&gt;

[netflow]
REPORT-foobar=argus_extractions
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Put this in transforms.conf:&lt;/p&gt;


&lt;div class=&quot;wikiCode&quot;&gt;&lt;pre&gt;

[argus_extractions]
DELIMS=&amp;quot;,&amp;quot;
FIELDS=&amp;quot;Host&amp;quot;,&amp;quot;Region&amp;quot;,&amp;quot;StartTime&amp;quot;,&amp;quot;LastTime&amp;quot;,&amp;quot;Trans&amp;quot;,&amp;quot;Dur&amp;quot;,&amp;quot;Proto,SrcAddr&amp;quot;,&amp;quot;Sport&amp;quot;,&amp;quot;DstAddr&amp;quot;,&amp;quot;Dport&amp;quot;,&amp;quot;SrcBytes&amp;quot;,&amp;quot;DstBytes&amp;quot;,&amp;quot;SrcPkts&amp;quot;,&amp;quot;DstPkts&amp;quot;,&amp;quot;pSrcLoss&amp;quot;,&amp;quot;pDstLoss&amp;quot;,&amp;quot;SrcRate&amp;quot;,&amp;quot;DstRate&amp;quot;,&amp;quot;TcpRtt(Sec)&amp;quot;,&amp;quot;State&amp;quot;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Then restart Splunk.  You will then be able to select these fields from the fields picker.&lt;/p&gt;

</description>
			<pubDate>Mon, 08 Jun 2009 08:58:51 PDT</pubDate>
			<author>araitz</author>
			<guid>http://www.splunk.com/support/forum:SplunkAdministration/2828/9057</guid>
		</item>
		<item>
			<title>CSV files with headers.</title>
			<link>http://www.splunk.com/support/forum:SplunkAdministration/2828/9046</link>
			<description>Hello list users!&lt;br /&gt;
I'm trying to get &lt;a class=&quot;wiki_url_new&quot; href=&quot;/base/NetFlow&quot;&gt;NetFlow&lt;/a&gt; data collected from Argus that I want to get into Splunk.&lt;br /&gt;
I'm taking the Argus data and using ra to generate an ASCII output file as a csv (coma seperated) with a header row at the top that looks like this:&lt;br /&gt;
the files we are generating look like this:&lt;br /&gt;
 &lt;p&gt;Host,Region,&lt;a class=&quot;wiki_url_new&quot; href=&quot;/base/StartTime&quot;&gt;StartTime&lt;/a&gt;,&lt;a class=&quot;wiki_url_new&quot; href=&quot;/base/LastTime&quot;&gt;LastTime&lt;/a&gt;,Trans,Dur,Proto,&lt;a class=&quot;wiki_url_new&quot; href=&quot;/base/SrcAddr&quot;&gt;SrcAddr&lt;/a&gt;,Sport,&lt;a class=&quot;wiki_url_new&quot; href=&quot;/base/DstAddr&quot;&gt;DstAddr&lt;/a&gt;,Dport,&lt;a class=&quot;wiki_url_new&quot; href=&quot;/base/SrcBytes&quot;&gt;SrcBytes&lt;/a&gt;,&lt;a class=&quot;wiki_url_new&quot; href=&quot;/base/DstBytes&quot;&gt;DstBytes&lt;/a&gt;,&lt;a class=&quot;wiki_url_new&quot; href=&quot;/base/SrcPkts&quot;&gt;SrcPkts&lt;/a&gt;,&lt;a class=&quot;wiki_url_new&quot; href=&quot;/base/DstPkts&quot;&gt;DstPkts&lt;/a&gt;,pSrcLoss,pDstLoss,&lt;a class=&quot;wiki_url_new&quot; href=&quot;/base/SrcRate&quot;&gt;SrcRate&lt;/a&gt;,&lt;a class=&quot;wiki_url_new&quot; href=&quot;/base/DstRate&quot;&gt;DstRate&lt;/a&gt;,&lt;a class=&quot;wiki_url_new&quot; href=&quot;/base/TcpRtt&quot;&gt;TcpRtt&lt;/a&gt;(Sec),State&lt;br /&gt;
NIDS-03,US,06/04/09 02:59:57.01,06/04/09 03:00:02.01,1,5.00,6,16.1.26.245,41368,19.7.8.6,80,667638,0,10096,0,0.00,0.00,2019.27,0.00,0.00,PA_&lt;br /&gt;
NIDS-03,US,06/04/09 02:59:56.86,06/04/09 02:59:57.18,1,0.32,17,19.7.8.3,44225,202.56.230.6,53,198,512,2,2,0.00,0.00,333333.32,90909.09,0.00,CON&lt;/p&gt;

&lt;p&gt;The machine that has this data is setup as a Splunk forwarder and I have the inputs.conf on this forwarder set up like so:&lt;/p&gt;

&lt;p&gt;[batch:///data/argus-splunk]&lt;br /&gt;
move_policy = sinkhole&lt;br /&gt;
disabled = false&lt;br /&gt;
host = 06&lt;br /&gt;
host_segment = 05&lt;br /&gt;
sourcetype = netflow&lt;/p&gt;

&lt;p&gt;When I copy this file into that directory Splunk reads it and forwards it to to the Splunk server and a net sourcetype shows up on the server &amp;quot;netflow&amp;quot;.&lt;/p&gt;

&lt;p&gt;However Splunk cannot match the headers (Host,Region,&lt;a class=&quot;wiki_url_new&quot; href=&quot;/base/StartTime&quot;&gt;StartTime&lt;/a&gt;,&lt;a class=&quot;wiki_url_new&quot; href=&quot;/base/LastTime&quot;&gt;LastTime&lt;/a&gt; etc) with the columns?&lt;/p&gt;

&lt;p&gt;Has someone done this befor that can help me with this?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br /&gt;
Ralph&lt;/p&gt;

</description>
			<pubDate>Fri, 05 Jun 2009 11:55:00 PDT</pubDate>
			<author>rcrongeyer</author>
			<guid>http://www.splunk.com/support/forum:SplunkAdministration/2828/9046</guid>
		</item>
	</channel>
</rss>

