<?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 to black list entire folder in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/HOw-to-black-list-entire-folder/m-p/481842#M82587</link>
    <description>&lt;P&gt;Well I have created separate SC and App on DS for each host.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Mar 2020 03:13:57 GMT</pubDate>
    <dc:creator>vikas_gopal</dc:creator>
    <dc:date>2020-03-04T03:13:57Z</dc:date>
    <item>
      <title>HOw to black list entire folder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HOw-to-black-list-entire-folder/m-p/481837#M82582</link>
      <description>&lt;P&gt;HI Experts ,&lt;/P&gt;

&lt;P&gt;I am prety sure this has been already answered but I am not able to find the correct answer on the community . I have path as below&lt;BR /&gt;
C:\app1\tomcatlogs1\WNSalesLogs1\WNEngine1\&lt;BR /&gt;
server1&lt;BR /&gt;
server2&lt;BR /&gt;
server3&lt;/P&gt;

&lt;P&gt;I have 8 servers on which same directory structure exist &lt;/P&gt;

&lt;P&gt;I want to use host_segment so that my host name will be automatically picked up and I only want to index server1 files . So 2 things I want to achieve &lt;BR /&gt;
1) If I am on host 1 , the host name should be server1&lt;BR /&gt;&lt;BR /&gt;
2) Only server1 folder files will get indexed .&lt;/P&gt;

&lt;P&gt;I tried folloing but it is not indexing my files and not setting up the hostname &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://C:\app1\tomcatlogs1\WNSalesLogs1\WNEngine1\*\productengin_*.log]
disabled = false
host_segment = 5
index = main
whitelist = server1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any suggestion will be highly appricaited &lt;/P&gt;

&lt;P&gt;Regards&lt;BR /&gt;
VG&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 23:17:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HOw-to-black-list-entire-folder/m-p/481837#M82582</guid>
      <dc:creator>vikas_gopal</dc:creator>
      <dc:date>2020-03-03T23:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: HOw to black list entire folder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HOw-to-black-list-entire-folder/m-p/481838#M82583</link>
      <description>&lt;P&gt;Can you do this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://C:\app1\tomcatlogs1\WNSalesLogs1\WNEngine1\server1\productengin_*.log]
 host=server1
 index=main
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Mar 2020 23:24:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HOw-to-black-list-entire-folder/m-p/481838#M82583</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2020-03-03T23:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: HOw to black list entire folder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HOw-to-black-list-entire-folder/m-p/481839#M82584</link>
      <description>&lt;P&gt;My bad I don't know after posting my format of the inputs.conf file is disturbed let me modify it .Please check now , hope this make sense . Here first * is folder like server1, server2, etc . Wild car in the file name , I am not bothered about that , because it is just 1,2 ,3 etc&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 23:48:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HOw-to-black-list-entire-folder/m-p/481839#M82584</guid>
      <dc:creator>vikas_gopal</dc:creator>
      <dc:date>2020-03-03T23:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: HOw to black list entire folder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HOw-to-black-list-entire-folder/m-p/481840#M82585</link>
      <description>&lt;P&gt;I've updated&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 00:16:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HOw-to-black-list-entire-folder/m-p/481840#M82585</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2020-03-04T00:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: HOw to black list entire folder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HOw-to-black-list-entire-folder/m-p/481841#M82586</link>
      <description>&lt;P&gt;Thank you for the quick response but the only concern is via DS how I can manage this as a single stenza . That is why I was planing to use host_segment . So does this mean I have to create sepparate app per host ?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 00:21:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HOw-to-black-list-entire-folder/m-p/481841#M82586</guid>
      <dc:creator>vikas_gopal</dc:creator>
      <dc:date>2020-03-04T00:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: HOw to black list entire folder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HOw-to-black-list-entire-folder/m-p/481842#M82587</link>
      <description>&lt;P&gt;Well I have created separate SC and App on DS for each host.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 03:13:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HOw-to-black-list-entire-folder/m-p/481842#M82587</guid>
      <dc:creator>vikas_gopal</dc:creator>
      <dc:date>2020-03-04T03:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: HOw to black list entire folder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HOw-to-black-list-entire-folder/m-p/481843#M82588</link>
      <description>&lt;P&gt;The way you wanted to do this is possible, but you need props &amp;amp; transforms.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;props.conf
[sourcetype]
TRANSFORMS-abc=abc

transforms.conf
[abc]
REGEX=WNEngin1\/(\W+)\/
 SOURCE=MetaData:Source
FORMAT=host::$1
DEST=MetaData:Host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Mar 2020 07:46:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HOw-to-black-list-entire-folder/m-p/481843#M82588</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2020-03-04T07:46:21Z</dc:date>
    </item>
  </channel>
</rss>

