<?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: Stanza to select Nginx log files in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Stanza-to-select-Nginx-log-files/m-p/356260#M65067</link>
    <description>&lt;P&gt;I'm not sure but I think you have a &lt;CODE&gt;/&lt;/CODE&gt; to much in your stanza. It should look like this:&lt;BR /&gt;
&lt;CODE&gt;[monitor:///var/log/nginx/server-access.log*]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;If this still not works I would make two stanzas:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[monitor:///var/log/nginx/server-access.log]&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;[monitor:///var/log/nginx/server-access.log-*]&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Feb 2019 13:56:22 GMT</pubDate>
    <dc:creator>markusspitzli</dc:creator>
    <dc:date>2019-02-22T13:56:22Z</dc:date>
    <item>
      <title>Stanza to select Nginx log files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Stanza-to-select-Nginx-log-files/m-p/356259#M65066</link>
      <description>&lt;P&gt;I want to forward some Nginx log files. Nginx log files look like:&lt;BR /&gt;
- server-access.log&lt;BR /&gt;
- server-access.log-20180102&lt;BR /&gt;
- server-access.log-20180101.gz&lt;BR /&gt;
I configured inputs.conf &lt;CODE&gt;&lt;BR /&gt;
[monitor:////var/log/nginx/server-access.log*]&lt;BR /&gt;
   index = server-index&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;But I didn't receive any events. It works without the wildcard.&lt;/P&gt;

&lt;P&gt;According to the documentation (1) the stanza &lt;CODE&gt;[monitor:////var/log/nginx/server-access.log*]&lt;/CODE&gt; is translated to &lt;CODE&gt;&lt;BR /&gt;
[monitor:////var/log/nginx]&lt;BR /&gt;
whitelist = server-access.log[^/]*$&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Specifying the whitelist does the job. My question is what is wrong with &lt;CODE&gt;server-access.log*&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;(1): &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.3/Data/Specifyinputpathswithwildcards" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.3/Data/Specifyinputpathswithwildcards&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:12:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Stanza-to-select-Nginx-log-files/m-p/356259#M65066</guid>
      <dc:creator>hbacbs</dc:creator>
      <dc:date>2020-09-29T19:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Stanza to select Nginx log files</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Stanza-to-select-Nginx-log-files/m-p/356260#M65067</link>
      <description>&lt;P&gt;I'm not sure but I think you have a &lt;CODE&gt;/&lt;/CODE&gt; to much in your stanza. It should look like this:&lt;BR /&gt;
&lt;CODE&gt;[monitor:///var/log/nginx/server-access.log*]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;If this still not works I would make two stanzas:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;[monitor:///var/log/nginx/server-access.log]&lt;/CODE&gt;&lt;BR /&gt;
&lt;CODE&gt;[monitor:///var/log/nginx/server-access.log-*]&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 13:56:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Stanza-to-select-Nginx-log-files/m-p/356260#M65067</guid>
      <dc:creator>markusspitzli</dc:creator>
      <dc:date>2019-02-22T13:56:22Z</dc:date>
    </item>
  </channel>
</rss>

