<?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 label fields in a flat file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/label-fields-in-a-flat-file/m-p/55128#M10727</link>
    <description>&lt;P&gt;I have activity files from a vpn radius server and I'd like to label the fields as they go into splunk... I'm not even sure where to look for this info at, can someone help point me in the right direction?&lt;/P&gt;

&lt;P&gt;Essentially I have this&lt;/P&gt;

&lt;P&gt;03/07/2011","14:06:53","VPN","Start","username","7","common name","IP address","1878", etc and I'd like those fields to become labeled and searchable in the index.  Thanks for any help you can give, I'm very new to splunk and fumbling my way through.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Mar 2011 03:11:05 GMT</pubDate>
    <dc:creator>udiggity</dc:creator>
    <dc:date>2011-03-08T03:11:05Z</dc:date>
    <item>
      <title>label fields in a flat file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/label-fields-in-a-flat-file/m-p/55128#M10727</link>
      <description>&lt;P&gt;I have activity files from a vpn radius server and I'd like to label the fields as they go into splunk... I'm not even sure where to look for this info at, can someone help point me in the right direction?&lt;/P&gt;

&lt;P&gt;Essentially I have this&lt;/P&gt;

&lt;P&gt;03/07/2011","14:06:53","VPN","Start","username","7","common name","IP address","1878", etc and I'd like those fields to become labeled and searchable in the index.  Thanks for any help you can give, I'm very new to splunk and fumbling my way through.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2011 03:11:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/label-fields-in-a-flat-file/m-p/55128#M10727</guid>
      <dc:creator>udiggity</dc:creator>
      <dc:date>2011-03-08T03:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: label fields in a flat file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/label-fields-in-a-flat-file/m-p/55129#M10728</link>
      <description>&lt;P&gt;You can assign a sourcetype to those VPN records and then perform field extraction on those fields you wish. I would first start by assigning the sourcetype field to the inputs.conf that collects those logs. I am assuming they are on disk so you would configure something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/VPN/logfile.log]]
sourcetype=VPN_logs
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then use the &lt;A href="http://www.splunk.com/base/Documentation/latest/User/InteractiveFieldExtractionExample" rel="nofollow"&gt;Interactive field extraction&lt;/A&gt; specified here.
There are some other ways to extract fields based upon host or based upon regular expressions. I choose to use sourcetype to do my field extractions because I can easily add another host or source of similar log files in the future. Similarly people use object groups in firewalls rather than single IP address entries because its easier to modify in the future.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2011 03:36:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/label-fields-in-a-flat-file/m-p/55129#M10728</guid>
      <dc:creator>jasonnadeau</dc:creator>
      <dc:date>2011-03-08T03:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: label fields in a flat file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/label-fields-in-a-flat-file/m-p/55130#M10729</link>
      <description>&lt;P&gt;Thanks for the reply, sorry I just got back in to the office, so I will try this now.  Thanks again, I will let you know how it goes.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2011 19:25:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/label-fields-in-a-flat-file/m-p/55130#M10729</guid>
      <dc:creator>udiggity</dc:creator>
      <dc:date>2011-03-09T19:25:48Z</dc:date>
    </item>
  </channel>
</rss>

