<?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: How to read logs in Tabbed text format in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-read-logs-in-Tabbed-text-format/m-p/41641#M7746</link>
    <description>&lt;P&gt;The docs will help: &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/Data/Createsourcetypes"&gt;Create source types&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;But here is one way to do what you want&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;inputs.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///path/ Logs_*.txt]
sourcetype=mynewsourcetypename
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mynewsourcetypename]
SHOULD_LINEMERGE=false
TRANSFORMS=extract_tabbed_fields
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[extract_tabbed_fields]
DELIMS="\t"
FIELDS=RecID,TimeStamp,ClientIPAddress,ServerName,ServerIPAddress,ServerPort Method,URIStem
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;HTH&lt;/P&gt;</description>
    <pubDate>Tue, 21 May 2013 18:46:45 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2013-05-21T18:46:45Z</dc:date>
    <item>
      <title>How to read logs in Tabbed text format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-read-logs-in-Tabbed-text-format/m-p/41639#M7744</link>
      <description>&lt;P&gt;OK - I'm a NUB here and experimenting with SPLUNK.&lt;BR /&gt;
I have some log files that are saved in a TAB/Columned format.&lt;BR /&gt;
[example: Logs_2013-05-17.txt&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;RecID       TimeStamp               ClientIPAddress  ServerName                                         ServerIPAddress  ServerPort Method     URIStem                                            URIQuery                                                                                                                                                                                                                                                         Status UserName                                           URLRoot
26405679    2013-05-17 01:35:05.000 67.190.82.148    HOMESITE                                                192.168.100.109  443        GET        /sites/ter/_layouts/listfeed.aspx                  List=%7BD94F33B2%2DB09D%2D4EEA%2D8D14%2D0B8A1ACAC8B1%7D                                                                                                                                                                                                          401    NULL                                               home3.mysite.com
26536158    2013-05-17 00:00:41.000 174.255.208.31   HOME-WWW                                            192.168.100.89   80         GET        /styles/default.css                                NULL                                                                                                                                                                                                                                                             200    NULL                                               &lt;A href="https://community.splunk.com/www.mysite.com" target="test_blank"&gt;www.mysite.com&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;]&lt;/P&gt;

&lt;P&gt;When I import it to Splunk I am not able to get it to recognize the fields and information correctly (EventBreaks)&lt;BR /&gt;
How do I apply a "sourcetype" that will read these logs correctly?&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2013 18:11:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-read-logs-in-Tabbed-text-format/m-p/41639#M7744</guid>
      <dc:creator>eritzman</dc:creator>
      <dc:date>2013-05-21T18:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to read logs in Tabbed text format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-read-logs-in-Tabbed-text-format/m-p/41640#M7745</link>
      <description>&lt;P&gt;Splunk auto line breaks based on time stamps.  You should first give the preview tool a try and see if you can figure it out there, but here's an example of a tab delimited input I have:&lt;/P&gt;

&lt;P&gt;Props.conf on indexer:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [SMTP]
 REPORT-smtp = getsmtpfields
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Transforms.conf on indexer:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [getsmtpfields]
 DELIMS = "\t"
 FIELDS = Type,Number,MSG_ID,Date,IP,MSG
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Inputs.conf on universal forwarder:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [monitor://c:\Program Files (x86)\hMailServer\Logs]
 disabled = 0
 host = hostname
 index = main
 sourcetype = SMTP
 crcSalt = &amp;lt;SOURCE&amp;gt;
 whitelist = \.log$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/admin/Transformsconf"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.2/admin/Transformsconf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/Admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.2/Admin/Propsconf&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;So yours might look like this:&lt;/P&gt;

&lt;P&gt;Props.conf on indexer:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [custominput]
 REPORT-custominput = custominputfields
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Transforms.conf on indexer:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [custominputfields]
 DELIMS = "\t"
 FIELDS = RecID,TimeStamp,ClientIPAddress,ServerName,ServerIPAddress,ServerPort,Method,URIStem,URIQuery,Status,UserName,URLRoot
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 May 2013 18:41:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-read-logs-in-Tabbed-text-format/m-p/41640#M7745</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2013-05-21T18:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to read logs in Tabbed text format</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-read-logs-in-Tabbed-text-format/m-p/41641#M7746</link>
      <description>&lt;P&gt;The docs will help: &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/Data/Createsourcetypes"&gt;Create source types&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;But here is one way to do what you want&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;inputs.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///path/ Logs_*.txt]
sourcetype=mynewsourcetypename
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mynewsourcetypename]
SHOULD_LINEMERGE=false
TRANSFORMS=extract_tabbed_fields
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[extract_tabbed_fields]
DELIMS="\t"
FIELDS=RecID,TimeStamp,ClientIPAddress,ServerName,ServerIPAddress,ServerPort Method,URIStem
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2013 18:46:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-read-logs-in-Tabbed-text-format/m-p/41641#M7746</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-05-21T18:46:45Z</dc:date>
    </item>
  </channel>
</rss>

