<?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: Whitelisting and wildcards at the monitor input in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Whitelisting-and-wildcards-at-the-monitor-input/m-p/605166#M105201</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt; thank you so much for the suggestions.&lt;/P&gt;&lt;P&gt;I am trying to ingest just a subset of files into the .tgz file, the issue is that the .tgz has a lot of files and I don't want to ingest all of them.&lt;/P&gt;&lt;P&gt;And I cannot defined an specific path at the monitor input because the files are at different folders.&lt;/P&gt;&lt;P&gt;I just want to know if there is a way to whitelist the files that I read from the .tgz.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jul 2022 15:23:37 GMT</pubDate>
    <dc:creator>glpadilla_sol</dc:creator>
    <dc:date>2022-07-11T15:23:37Z</dc:date>
    <item>
      <title>Whitelisting and wildcards at the monitor input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Whitelisting-and-wildcards-at-the-monitor-input/m-p/604655#M105146</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am trying to ingest data into Splunk and the data is into some .tgz files, but within those files are a lot of different folders and levels of directories, the thing is that I want to read just one type of file that is into those directories and is not an absolute path is a relative the path can change and can be into any directory.&lt;/P&gt;&lt;P&gt;So the inputs .conf was set up with something like this:&lt;/P&gt;&lt;P&gt;[monitor:///dir1/dir2/Spk/Test/*.tgz]&lt;/P&gt;&lt;P&gt;whitelist=my.log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this is not working because of this: &lt;EM&gt;When you configure wildcards in a file input path, Splunk Enterprise creates an implicit allow list for that stanza. The longest wildcard-free path becomes the monitor stanza, and Splunk Enterprise translates the wildcards into regular expressions.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/Specifyinputpathswithwildcards?_gl=1*srk1nm*_ga*MjE0MDA2MDA2MS4xNjI4ODcyNDg2*_gid*MTUyMjkxNTIzLjE2NTY5Njg1NDE.&amp;amp;_ga=2.178037989.152291523.1656968541-2140060061.1628872486" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Data/Specifyinputpathswithwildcards?_gl=1*srk1nm*_ga*MjE0MDA2MDA2MS4xNjI4ODcyNDg2*_gid*MTUyMjkxNTIzLjE2NTY5Njg1NDE.&amp;amp;_ga=2.178037989.152291523.1656968541-2140060061.1628872486&lt;/A&gt; &lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I am looking the way to filter those logs using whitelisting, should I use regular expressions to filter the logs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 19:26:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Whitelisting-and-wildcards-at-the-monitor-input/m-p/604655#M105146</guid>
      <dc:creator>glpadilla_sol</dc:creator>
      <dc:date>2022-07-06T19:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Whitelisting and wildcards at the monitor input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Whitelisting-and-wildcards-at-the-monitor-input/m-p/604712#M105156</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241395"&gt;@glpadilla_sol&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;only one question:&amp;nbsp;&lt;SPAN&gt;*.tgz is a part of the path or is the name of the files that you want to ingest?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if it's a part of the path, you could also try to add the filename in the monitor stanza instead of whitelist&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor:///dir1/dir2/Spk/Test/*.tgz/my.log]&lt;/LI-CODE&gt;&lt;P&gt;if instead *.tgz is the name of the files to ingest, you don't need whitelist and you could use the monitor stanza as is.&lt;/P&gt;&lt;P&gt;If you want to read the *.tgz files in many and structured folders, you could try "..."&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor:///.../*.tgz]&lt;/LI-CODE&gt;&lt;P&gt;or something similar.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 07:27:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Whitelisting-and-wildcards-at-the-monitor-input/m-p/604712#M105156</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-07-07T07:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Whitelisting and wildcards at the monitor input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Whitelisting-and-wildcards-at-the-monitor-input/m-p/604719#M105157</link>
      <description>&lt;P&gt;If you want to only read a limited subset of a tgz archive, I'm afraid it won't work this way.&lt;/P&gt;&lt;P&gt;For compressed files splunk unpacks them into a temporary directory and ingests files from that directory. I have no knowledge of any mechanism able to affect which of those unpacked files are ingested.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 08:48:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Whitelisting-and-wildcards-at-the-monitor-input/m-p/604719#M105157</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-07-07T08:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Whitelisting and wildcards at the monitor input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Whitelisting-and-wildcards-at-the-monitor-input/m-p/605166#M105201</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt; thank you so much for the suggestions.&lt;/P&gt;&lt;P&gt;I am trying to ingest just a subset of files into the .tgz file, the issue is that the .tgz has a lot of files and I don't want to ingest all of them.&lt;/P&gt;&lt;P&gt;And I cannot defined an specific path at the monitor input because the files are at different folders.&lt;/P&gt;&lt;P&gt;I just want to know if there is a way to whitelist the files that I read from the .tgz.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 15:23:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Whitelisting-and-wildcards-at-the-monitor-input/m-p/605166#M105201</guid>
      <dc:creator>glpadilla_sol</dc:creator>
      <dc:date>2022-07-11T15:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Whitelisting and wildcards at the monitor input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Whitelisting-and-wildcards-at-the-monitor-input/m-p/605268#M105222</link>
      <description>&lt;P&gt;As I said before, splunk unpacks the archive file and ingests all unpacked files. That's how it works. The assumption is that you have your logs ready, just packed.&lt;/P&gt;&lt;P&gt;The whitelist/blacklist logic works at the level of choosing which file to unpack, not which unpacked file from within the archive to ingest.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 08:56:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Whitelisting-and-wildcards-at-the-monitor-input/m-p/605268#M105222</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-07-12T08:56:09Z</dc:date>
    </item>
  </channel>
</rss>

