<?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 do you collect Linux logs from files such as access.log.YY-DD-MM? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-you-collect-Linux-logs-from-files-such-as-access-log-YY/m-p/383296#M1193</link>
    <description>&lt;P&gt;Hi Rich,&lt;/P&gt;

&lt;P&gt;Thanks for your quick response, that really helped and it worked.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Jan 2019 09:08:09 GMT</pubDate>
    <dc:creator>w_raza</dc:creator>
    <dc:date>2019-01-01T09:08:09Z</dc:date>
    <item>
      <title>How do you collect Linux logs from files such as access.log.YY-DD-MM?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-you-collect-Linux-logs-from-files-such-as-access-log-YY/m-p/383292#M1189</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I've deployed &lt;STRONG&gt;splunklight-7.2.1&lt;/STRONG&gt; and I am using universal log forwarder to forward logs from a Linux server to my Splunk server.&lt;/P&gt;

&lt;P&gt;I'm stuck in condition where I have to get logs from a particular file which gets created a new file daily to store the logs. For example, today's logs will be stored in &lt;STRONG&gt;../acess_log.2018-12-31&lt;/STRONG&gt; and tomorrow's logs will be stored as &lt;STRONG&gt;../access_log.2019-01-01&lt;/STRONG&gt; and so on. Can any one please guide my what should I configure in my inputs.conf file to get these logs?&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 31 Dec 2018 14:41:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-you-collect-Linux-logs-from-files-such-as-access-log-YY/m-p/383292#M1189</guid>
      <dc:creator>w_raza</dc:creator>
      <dc:date>2018-12-31T14:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do you collect Linux logs from files such as access.log.YY-DD-MM?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-you-collect-Linux-logs-from-files-such-as-access-log-YY/m-p/383293#M1190</link>
      <description>&lt;P&gt;It depends on what else you don't want to monitor is in the same directory, but start with &lt;CODE&gt;[monitor://../access_log.*]&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Dec 2018 14:45:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-you-collect-Linux-logs-from-files-such-as-access-log-YY/m-p/383293#M1190</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-12-31T14:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do you collect Linux logs from files such as access.log.YY-DD-MM?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-you-collect-Linux-logs-from-files-such-as-access-log-YY/m-p/383294#M1191</link>
      <description>&lt;P&gt;That won't work quite right, Rich. The wildcard is three dots, and using ../ would probably try to find log files up one level from the Splunk root or possibly from the root level (and only at that level). (Checking &lt;CODE&gt;bin/splunk list monitor&lt;/CODE&gt; just shows that splunk is literally interpreting the ../ but not showing the actual root it's using)&lt;/P&gt;

&lt;P&gt;You're always better off with an explicit path as the start (ie, &lt;CODE&gt;[monitor:///var/log/access_log.*]&lt;/CODE&gt;), or if it's truly a wildcard recursive search, then it would be &lt;CODE&gt;[monitor:///var/log/.../access_log.*]&lt;/CODE&gt;. Recursion though from the root wouldn't be a very good idea because then Splunk will have to traverse the whole file system looking for access_log files.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Dec 2018 15:03:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-you-collect-Linux-logs-from-files-such-as-access-log-YY/m-p/383294#M1191</guid>
      <dc:creator>vliggio</dc:creator>
      <dc:date>2018-12-31T15:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do you collect Linux logs from files such as access.log.YY-DD-MM?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-you-collect-Linux-logs-from-files-such-as-access-log-YY/m-p/383295#M1192</link>
      <description>&lt;P&gt;Valid points.  My answer was based on the OP's info, but explicit file paths are best.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Dec 2018 15:19:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-you-collect-Linux-logs-from-files-such-as-access-log-YY/m-p/383295#M1192</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-12-31T15:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do you collect Linux logs from files such as access.log.YY-DD-MM?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-you-collect-Linux-logs-from-files-such-as-access-log-YY/m-p/383296#M1193</link>
      <description>&lt;P&gt;Hi Rich,&lt;/P&gt;

&lt;P&gt;Thanks for your quick response, that really helped and it worked.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jan 2019 09:08:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-you-collect-Linux-logs-from-files-such-as-access-log-YY/m-p/383296#M1193</guid>
      <dc:creator>w_raza</dc:creator>
      <dc:date>2019-01-01T09:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do you collect Linux logs from files such as access.log.YY-DD-MM?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-you-collect-Linux-logs-from-files-such-as-access-log-YY/m-p/383297#M1194</link>
      <description>&lt;P&gt;Hi vliggio,&lt;/P&gt;

&lt;P&gt;Thanks for your response and explaining in detail, that helped.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jan 2019 09:09:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-you-collect-Linux-logs-from-files-such-as-access-log-YY/m-p/383297#M1194</guid>
      <dc:creator>w_raza</dc:creator>
      <dc:date>2019-01-01T09:09:20Z</dc:date>
    </item>
  </channel>
</rss>

