<?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 Conditional Input.conf setting? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Conditional-Input-conf-setting/m-p/529040#M89154</link>
    <description>&lt;P&gt;All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have about 200 machines with UF installed. I want to monitor bash_history and a few other Linux /home items. The challenge is on about half the machines the home directory is an NFS mount and the other half are local file system.&amp;nbsp; Monitoring the NFS every every end point is IO prohibitive and double indexes the same data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way in Splunk to programmatically handle this? That is, I only need to gather the files/logs from one host if it's mounted from NFS but if it's local file system I need to run the input on each machine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any recommendations? I was thinking of writing a script input in a Splunk app that creates and manages an app in the UF app folder. But seems very clunky.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Nov 2020 20:36:26 GMT</pubDate>
    <dc:creator>daniel333</dc:creator>
    <dc:date>2020-11-11T20:36:26Z</dc:date>
    <item>
      <title>Conditional Input.conf setting?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Conditional-Input-conf-setting/m-p/529040#M89154</link>
      <description>&lt;P&gt;All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have about 200 machines with UF installed. I want to monitor bash_history and a few other Linux /home items. The challenge is on about half the machines the home directory is an NFS mount and the other half are local file system.&amp;nbsp; Monitoring the NFS every every end point is IO prohibitive and double indexes the same data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way in Splunk to programmatically handle this? That is, I only need to gather the files/logs from one host if it's mounted from NFS but if it's local file system I need to run the input on each machine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any recommendations? I was thinking of writing a script input in a Splunk app that creates and manages an app in the UF app folder. But seems very clunky.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 20:36:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Conditional-Input-conf-setting/m-p/529040#M89154</guid>
      <dc:creator>daniel333</dc:creator>
      <dc:date>2020-11-11T20:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Input.conf setting?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Conditional-Input-conf-setting/m-p/529046#M89157</link>
      <description>&lt;P&gt;There are not programmatic settings in inputs.conf or any other Splunk config file.&lt;/P&gt;&lt;P&gt;If you use a third-part tool like Ansible to manage your UFs then your script idea might work&amp;nbsp; It would be even better if Ansible could make the NFS-is-used decision and selectively install your input app.&lt;/P&gt;&lt;P&gt;If you use the Splunk deployment server to manage UFs then don't manipulate the app locally.&amp;nbsp; That will cause the UF to re-install the app from the DS.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2020 21:47:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Conditional-Input-conf-setting/m-p/529046#M89157</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-11-11T21:47:27Z</dc:date>
    </item>
  </channel>
</rss>

