<?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: serverclass.conf whitelist from pathname not working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/serverclass-conf-whitelist-from-pathname-not-working/m-p/573832#M101489</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;According to the documentation :&lt;/P&gt;&lt;PRE&gt;The &amp;lt;pathname&amp;gt; is relative to $SPLUNK_HOME.&lt;/PRE&gt;&lt;P&gt;So it won't work if the file is outside $SPLUNK_HOME.&lt;/P&gt;&lt;P&gt;Put it in&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;etc/Automation/ServerEnvironmentList.csv&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Nov 2021 15:01:49 GMT</pubDate>
    <dc:creator>zzo</dc:creator>
    <dc:date>2021-11-05T15:01:49Z</dc:date>
    <item>
      <title>serverclass.conf whitelist from pathname not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/serverclass-conf-whitelist-from-pathname-not-working/m-p/513094#M87002</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've got a 100% Windows environment with a deployment server and I'm trying to configure server classes so we can automatically distribute config to servers based on their environment/roles. Using just name regex matches (whitelist.0 = regex) isn't going to work well with how random the names are, so I'd like to use "whitelist.from_pathname" instead with a csv or text file fed from one of my automation servers, but I just can't get it to work or the UI is lying to me.&lt;/P&gt;&lt;P&gt;I tried csv files first, two columns (ComputerName,EnvironmentName), using select_field, where_field and where_equals to filter by EnvironmentName and that didn't seem to work. Then I tried just a plain text file list (one server name per line) and that didn't work. I thought maybe it didn't like absolute paths (D:\) so I tried a relative path "etc\deployment-apps\DevServerList.txt" and that didn't work either. So I tried forward slashes. I've been restarting splunkd in between edits.&lt;/P&gt;&lt;P&gt;This is basically what the CSV stanza looked like:&lt;/P&gt;&lt;PRE&gt;[serverClass:DevelopmentServers]
whitelist.select_field = ComputerName
whitelist.from_pathname = D:\Automation\ServerEnvironmentList.csv
whitelist.where_field = EnvironmentName
whitelist.where_equals = Development*&lt;/PRE&gt;&lt;P&gt;When I inspect clients in Forwarder Management &amp;gt; Clients they're all showing nothing for Server Classes, but the moment I switch the serverClass back to whitelist.0 with some sample names they start showing up. What am I missing?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 20:16:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/serverclass-conf-whitelist-from-pathname-not-working/m-p/513094#M87002</guid>
      <dc:creator>justincoon</dc:creator>
      <dc:date>2020-08-07T20:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: serverclass.conf whitelist from pathname not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/serverclass-conf-whitelist-from-pathname-not-working/m-p/573832#M101489</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;According to the documentation :&lt;/P&gt;&lt;PRE&gt;The &amp;lt;pathname&amp;gt; is relative to $SPLUNK_HOME.&lt;/PRE&gt;&lt;P&gt;So it won't work if the file is outside $SPLUNK_HOME.&lt;/P&gt;&lt;P&gt;Put it in&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;etc/Automation/ServerEnvironmentList.csv&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 15:01:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/serverclass-conf-whitelist-from-pathname-not-working/m-p/573832#M101489</guid>
      <dc:creator>zzo</dc:creator>
      <dc:date>2021-11-05T15:01:49Z</dc:date>
    </item>
  </channel>
</rss>

