<?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 How to extract fields from vsftpd logs in Splunk 6.0.1? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-from-vsftpd-logs-in-Splunk-6-0-1/m-p/198006#M57240</link>
    <description>&lt;P&gt;I'm struggling to get Splunk 6.0.1 to properly extract fields from vsftpd logs.  The log format is space separated values like so: &lt;/P&gt;

&lt;P&gt;Thu Jun 12 23:50:13 2014 1 11.22.33.44 551 /example.tif a _ o r ftpuser4 ftp 0 * c&lt;/P&gt;

&lt;P&gt;Those break down as follows, in example  fieldname format&lt;BR /&gt;
Thu Jun 12 23:50:13 2014  current-time&lt;BR /&gt;
1  transfer-time&lt;BR /&gt;
11.22.33.44  remote-host&lt;BR /&gt;
551 byte-count&lt;BR /&gt;
/example.tif  filename  this one can be complicated by additional directories in the path, eg /images4/example.tif&lt;BR /&gt;
a   transfer-type&lt;BR /&gt;
_  special-action-flag&lt;BR /&gt;
o  direction&lt;BR /&gt;
r  access-mode&lt;BR /&gt;
ftpuser4  username&lt;BR /&gt;
ftp  service-name&lt;BR /&gt;
0  authentication-method&lt;BR /&gt;
*  authenticated-user-id&lt;BR /&gt;
c   completion-status&lt;/P&gt;

&lt;P&gt;What I'm struggling with is that the field extractions are sometimes picking up the current-date year as the transfer-time value, which then throws the rest of the extractions out of whack.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jun 2014 18:10:22 GMT</pubDate>
    <dc:creator>mcomfurf</dc:creator>
    <dc:date>2014-06-13T18:10:22Z</dc:date>
    <item>
      <title>How to extract fields from vsftpd logs in Splunk 6.0.1?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-from-vsftpd-logs-in-Splunk-6-0-1/m-p/198006#M57240</link>
      <description>&lt;P&gt;I'm struggling to get Splunk 6.0.1 to properly extract fields from vsftpd logs.  The log format is space separated values like so: &lt;/P&gt;

&lt;P&gt;Thu Jun 12 23:50:13 2014 1 11.22.33.44 551 /example.tif a _ o r ftpuser4 ftp 0 * c&lt;/P&gt;

&lt;P&gt;Those break down as follows, in example  fieldname format&lt;BR /&gt;
Thu Jun 12 23:50:13 2014  current-time&lt;BR /&gt;
1  transfer-time&lt;BR /&gt;
11.22.33.44  remote-host&lt;BR /&gt;
551 byte-count&lt;BR /&gt;
/example.tif  filename  this one can be complicated by additional directories in the path, eg /images4/example.tif&lt;BR /&gt;
a   transfer-type&lt;BR /&gt;
_  special-action-flag&lt;BR /&gt;
o  direction&lt;BR /&gt;
r  access-mode&lt;BR /&gt;
ftpuser4  username&lt;BR /&gt;
ftp  service-name&lt;BR /&gt;
0  authentication-method&lt;BR /&gt;
*  authenticated-user-id&lt;BR /&gt;
c   completion-status&lt;/P&gt;

&lt;P&gt;What I'm struggling with is that the field extractions are sometimes picking up the current-date year as the transfer-time value, which then throws the rest of the extractions out of whack.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2014 18:10:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-from-vsftpd-logs-in-Splunk-6-0-1/m-p/198006#M57240</guid>
      <dc:creator>mcomfurf</dc:creator>
      <dc:date>2014-06-13T18:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields from vsftpd logs in Splunk 6.0.1?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-from-vsftpd-logs-in-Splunk-6-0-1/m-p/198007#M57241</link>
      <description>&lt;P&gt;The problem appears to be rooted in how the logs handle the date - if the day of the month is single-digit, then it inserts an extra space after the month (eg Jun  5 instead of Jun 13)  The Field Extraction UI is counting spaces and gets thrown off when there is an extra space in the event for a single-digit date.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2014 19:46:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-from-vsftpd-logs-in-Splunk-6-0-1/m-p/198007#M57241</guid>
      <dc:creator>mcomfurf</dc:creator>
      <dc:date>2014-06-13T19:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields from vsftpd logs in Splunk 6.0.1?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-from-vsftpd-logs-in-Splunk-6-0-1/m-p/198008#M57242</link>
      <description>&lt;P&gt;You can make your extraction more flexible with regards to the number of whitespaces between the words by replacing &lt;CODE&gt;\s&lt;/CODE&gt; with &lt;CODE&gt;\s+&lt;/CODE&gt;... something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?&amp;lt;current_time&amp;gt;\S+\s+\S+\s+\S+\s+\S+\s+\S+)\s+(?&amp;lt;transfer_time&amp;gt;\S+)\s+(?&amp;lt;remote_host&amp;gt;\S+)\s+...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This way it doesn't matter if there's one or two spaces between the fields / within the date.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2014 20:21:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-fields-from-vsftpd-logs-in-Splunk-6-0-1/m-p/198008#M57242</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-06-13T20:21:24Z</dc:date>
    </item>
  </channel>
</rss>

