<?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: Scripted wtmp input rejected as Binary file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-wtmp-input-rejected-as-Binary-file/m-p/93725#M19488</link>
    <description>&lt;P&gt;Can i get the script to read wtmp file and converts in ASCII information.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Apr 2014 22:09:19 GMT</pubDate>
    <dc:creator>praveerg</dc:creator>
    <dc:date>2014-04-04T22:09:19Z</dc:date>
    <item>
      <title>Scripted wtmp input rejected as Binary file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-wtmp-input-rejected-as-Binary-file/m-p/93723#M19486</link>
      <description>&lt;P&gt;I have a script that pulls wtmp information and saves it to ASCII files but Splunk still insists that my files are binary. In fact, any files I now put in the directory are now considered binary files and cannot be indexed! My config&lt;/P&gt;

&lt;P&gt;[monitor:///mylogs/wtmp_logs]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
sourcetype = wtmp&lt;BR /&gt;
crcSalt = &lt;SOURCE&gt;&lt;/SOURCE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2012 21:21:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripted-wtmp-input-rejected-as-Binary-file/m-p/93723#M19486</guid>
      <dc:creator>Flynt</dc:creator>
      <dc:date>2012-03-15T21:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted wtmp input rejected as Binary file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-wtmp-input-rejected-as-Binary-file/m-p/93724#M19487</link>
      <description>&lt;P&gt;The issue here is the wtmp sourcetype you have defined in the inputs.conf. Splunk will reject the wtmp sourcetype and consider the files binary. Changing the sourcetype to wtmp_log or wtmplogs will solve the issue and allow indexing of files within this directory.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2012 21:22:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripted-wtmp-input-rejected-as-Binary-file/m-p/93724#M19487</guid>
      <dc:creator>Flynt</dc:creator>
      <dc:date>2012-03-15T21:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted wtmp input rejected as Binary file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-wtmp-input-rejected-as-Binary-file/m-p/93725#M19488</link>
      <description>&lt;P&gt;Can i get the script to read wtmp file and converts in ASCII information.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Apr 2014 22:09:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripted-wtmp-input-rejected-as-Binary-file/m-p/93725#M19488</guid>
      <dc:creator>praveerg</dc:creator>
      <dc:date>2014-04-04T22:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted wtmp input rejected as Binary file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-wtmp-input-rejected-as-Binary-file/m-p/93726#M19489</link>
      <description>&lt;P&gt;If I recall correctly it was done in python calling the "last" command using subprocess.&lt;/P&gt;

&lt;P&gt;See this article for some basic uses for "last". &lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.linuxnix.com/2012/10/read-view-utmp-wtmp-btmp-file-linuxunix.html"&gt;http://www.linuxnix.com/2012/10/read-view-utmp-wtmp-btmp-file-linuxunix.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2015 12:44:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripted-wtmp-input-rejected-as-Binary-file/m-p/93726#M19489</guid>
      <dc:creator>Flynt</dc:creator>
      <dc:date>2015-04-16T12:44:48Z</dc:date>
    </item>
  </channel>
</rss>

