<?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 Why can't I index my wtmp, lastlog, etc files? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-index-my-wtmp-lastlog-etc-files/m-p/35848#M178526</link>
    <description>&lt;P&gt;I have a text file that I cannot index, I KNOW it's text, I can vi the file with :set list and there are no hidden characters or formatting. In fact I deleted the file and created it with the name "wtmp" from scratch and STILL I cannot index this file as Splunk claims it is binary! What is going on?&lt;/P&gt;</description>
    <pubDate>Wed, 25 Apr 2012 16:14:12 GMT</pubDate>
    <dc:creator>Flynt</dc:creator>
    <dc:date>2012-04-25T16:14:12Z</dc:date>
    <item>
      <title>Why can't I index my wtmp, lastlog, etc files?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-index-my-wtmp-lastlog-etc-files/m-p/35848#M178526</link>
      <description>&lt;P&gt;I have a text file that I cannot index, I KNOW it's text, I can vi the file with :set list and there are no hidden characters or formatting. In fact I deleted the file and created it with the name "wtmp" from scratch and STILL I cannot index this file as Splunk claims it is binary! What is going on?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2012 16:14:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-index-my-wtmp-lastlog-etc-files/m-p/35848#M178526</guid>
      <dc:creator>Flynt</dc:creator>
      <dc:date>2012-04-25T16:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why can't I index my wtmp, lastlog, etc files?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-index-my-wtmp-lastlog-etc-files/m-p/35849#M178527</link>
      <description>&lt;P&gt;Splunk will not index binary files. There are certain files and filetypes that are by default considered binary by Splunk.&lt;/P&gt;

&lt;P&gt;Notice in $SPLUNK_HOME/etc/system/default/props.conf&lt;/P&gt;

&lt;P&gt;[source::....(0t|a|ali|asa|au|bmp|cg|cgi|class|d|dat|deb|del|dot|dvi|dylib|elc|eps|exe|ftn|gif|hlp|hqx|hs|icns|ico|inc|iso|jame|jin|jpeg|jpg|kml|la|lhs|lib|lo|lock|mcp|mid|mp3|mpg|msf|nib|o|obj|odt|ogg|ook|opt|os|pal|pbm|pdf|pem|pgm|plo|png|po|pod|pp|ppd|ppm|ppt|prc|ps|psd|psym|pyc|pyd|rast|rb|rde|rdf|rdr|rgb|ro|rpm|rsrc|so|ss|stg|strings|tdt|tif|tiff|tk|uue|vhd|xbm|xlb|xls|xlw)]&lt;BR /&gt;
sourcetype = known_binary&lt;/P&gt;

&lt;P&gt;[lastlog]&lt;/P&gt;

&lt;P&gt;invalid_cause = binary&lt;/P&gt;

&lt;P&gt;LEARN_MODEL = false&lt;/P&gt;

&lt;P&gt;[wtmp]&lt;/P&gt;

&lt;P&gt;invalid_cause = binary&lt;/P&gt;

&lt;P&gt;LEARN_MODEL = false&lt;/P&gt;

&lt;P&gt;[known_binary]&lt;/P&gt;

&lt;P&gt;is_valid = False&lt;/P&gt;

&lt;P&gt;invalid_cause = binary&lt;/P&gt;

&lt;P&gt;LEARN_MODEL = false&lt;/P&gt;

&lt;P&gt;Any files with the extensions listed in the source stanza, or files named wtmp or lastlog will not be indexed as Splunk considers them Binary files. If you have a log with these reserved names, change the name and your log should be indexed.&lt;/P&gt;

&lt;P&gt;If you are working with trying to index wtmp itself, there is a great post here to help you accomplish that.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/5844/can-i-splunk-my-wtmp-files"&gt;http://splunk-base.splunk.com/answers/5844/can-i-splunk-my-wtmp-files&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2012 16:17:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-can-t-I-index-my-wtmp-lastlog-etc-files/m-p/35849#M178527</guid>
      <dc:creator>Flynt</dc:creator>
      <dc:date>2012-04-25T16:17:45Z</dc:date>
    </item>
  </channel>
</rss>

