<?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: Question on monitoring file in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Question-on-monitoring-file/m-p/79841#M16418</link>
    <description>&lt;P&gt;Ayn is right. In the end i have to write a script to index all the diff auth.log instead of using monitor&lt;/P&gt;</description>
    <pubDate>Tue, 08 Oct 2013 09:30:43 GMT</pubDate>
    <dc:creator>darksky21</dc:creator>
    <dc:date>2013-10-08T09:30:43Z</dc:date>
    <item>
      <title>Question on monitoring file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Question-on-monitoring-file/m-p/79833#M16410</link>
      <description>&lt;P&gt;Hi i am trying to monitor some file in var/log on ubuntu. There is 4 file (auth.log,auth.log.1,auth.log.2.gz,auth.log.3.gz)&lt;/P&gt;

&lt;P&gt;when i tried the code below it work &lt;/P&gt;

&lt;P&gt;[monitor:///var/log/auth.log]&lt;BR /&gt;
sourcetype= authlog&lt;BR /&gt;
index = test&lt;BR /&gt;
disabled = 0&lt;/P&gt;

&lt;P&gt;but this does not work&lt;/P&gt;

&lt;P&gt;[monitor:///var/log/auth.log.1]&lt;BR /&gt;
sourcetype= authlog&lt;BR /&gt;
index = test&lt;BR /&gt;
disabled = 0&lt;/P&gt;

&lt;P&gt;Why is that so? is there anything wrong with it?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2013 10:04:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Question-on-monitoring-file/m-p/79833#M16410</guid>
      <dc:creator>darksky21</dc:creator>
      <dc:date>2013-10-02T10:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Question on monitoring file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Question-on-monitoring-file/m-p/79834#M16411</link>
      <description>&lt;P&gt;It could be a permissions issue, check splunkd.log. Make sure that the account running splunkd has read access to /var/auth/auth.log.&lt;/P&gt;

&lt;P&gt;The .log.&lt;EM&gt;n&lt;/EM&gt; and .log.&lt;EM&gt;n&lt;/EM&gt;.gz files are just rotated versions of the auth.log, so if you don't need to index the old events, you can just stick with monitoring auth.log. When the current auth.log rotates to auth.log.1, you have already indexed all those events, so you do not need to monitor the rotated files explicitly.&lt;/P&gt;

&lt;P&gt;EDIT: typo/bad thinking. &lt;/P&gt;

&lt;P&gt;/Kristian&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2013 10:41:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Question-on-monitoring-file/m-p/79834#M16411</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-10-02T10:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: Question on monitoring file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Question-on-monitoring-file/m-p/79835#M16412</link>
      <description>&lt;P&gt;The colon is ok, no?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2013 12:30:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Question-on-monitoring-file/m-p/79835#M16412</guid>
      <dc:creator>sdaniels</dc:creator>
      <dc:date>2013-10-02T12:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Question on monitoring file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Question-on-monitoring-file/m-p/79836#M16413</link>
      <description>&lt;P&gt;Ooops. I thought I saw a semicolon, and something in my thinking process short-circuited. Colon is supposed to be there, definitely...&lt;/P&gt;

&lt;P&gt;Edited answer to include some more clever guessing...&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2013 13:08:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Question-on-monitoring-file/m-p/79836#M16413</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-10-02T13:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Question on monitoring file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Question-on-monitoring-file/m-p/79837#M16414</link>
      <description>&lt;P&gt;Hi thx for the reply. is there anyway to monitor all the different version of auth.log?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2013 02:06:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Question-on-monitoring-file/m-p/79837#M16414</guid>
      <dc:creator>darksky21</dc:creator>
      <dc:date>2013-10-03T02:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Question on monitoring file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Question-on-monitoring-file/m-p/79838#M16415</link>
      <description>&lt;P&gt;You can use auth.log* to monitor all the versions and use blacklist attribute to ignore gz ones&lt;/P&gt;

&lt;P&gt;blacklist = (\.(tar|gz|bz2|tar.gz|tgz|tbz|tbz2|zip|z)$)&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2013 02:16:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Question-on-monitoring-file/m-p/79838#M16415</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2013-10-03T02:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Question on monitoring file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Question-on-monitoring-file/m-p/79839#M16416</link>
      <description>&lt;P&gt;Hi gpradeepkuma... thx for the reply. i have tried that but it does not seem to work.It only monitor auth.log for some reason. Maybe splunk does not allow monitoring for those file?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2013 02:51:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Question-on-monitoring-file/m-p/79839#M16416</guid>
      <dc:creator>darksky21</dc:creator>
      <dc:date>2013-10-03T02:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Question on monitoring file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Question-on-monitoring-file/m-p/79840#M16417</link>
      <description>&lt;P&gt;If the auth.log.1, auth.log.2, auth.log.3 etc files are just rotated files that have already been indexed, Splunk won't index them a second time. Might that be what's happening in your case?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2013 07:21:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Question-on-monitoring-file/m-p/79840#M16417</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-10-03T07:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Question on monitoring file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Question-on-monitoring-file/m-p/79841#M16418</link>
      <description>&lt;P&gt;Ayn is right. In the end i have to write a script to index all the diff auth.log instead of using monitor&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2013 09:30:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Question-on-monitoring-file/m-p/79841#M16418</guid>
      <dc:creator>darksky21</dc:creator>
      <dc:date>2013-10-08T09:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Question on monitoring file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Question-on-monitoring-file/m-p/79842#M16419</link>
      <description>&lt;P&gt;No, you don't need to do that - there are ways to make Splunk index them anyway, but very often this is NOT what you want, because it will make Splunk read the same data multiple times and I don't see why you would want that.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2013 09:32:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Question-on-monitoring-file/m-p/79842#M16419</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-10-08T09:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Question on monitoring file</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Question-on-monitoring-file/m-p/79843#M16420</link>
      <description>&lt;P&gt;You have been given advice as to why that might be a bad idea. If you are absolutely sure that this is what you want...  good luck.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2013 10:27:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Question-on-monitoring-file/m-p/79843#M16420</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-10-08T10:27:46Z</dc:date>
    </item>
  </channel>
</rss>

