<?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: Do we need a different inputs.conf file for Linux and Windows? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Do-we-need-a-different-inputs-conf-file-for-Linux-and-Windows/m-p/189238#M37708</link>
    <description>&lt;P&gt;And for that matter, you see how they do ./bin/ps_sos.sh?   what that will do is make it use the bin folder in the SOS app's directory.  So you could further simplify to this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  #windows batch
  [batch://.\logs\*.log]
  index=...
  disabled=0
  ...

 #linux batch
  [batch://./logs/*.log]
  index=...
  disabled=0
  ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 15 May 2015 18:32:26 GMT</pubDate>
    <dc:creator>jkat54</dc:creator>
    <dc:date>2015-05-15T18:32:26Z</dc:date>
    <item>
      <title>Do we need a different inputs.conf file for Linux and Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Do-we-need-a-different-inputs-conf-file-for-Linux-and-Windows/m-p/189235#M37705</link>
      <description>&lt;P&gt;We have a product that runs on both Windows and Linux. Both platforms can host a Splunk forwarder, and send data to Splunk.  I am developing a TA for this product, so the forwarder can be managed from a deployment servers.  However, the inputs.conf is different for each platform because our data files are in different locations on each.  Question: Is there a way to write a single inputs.conf file both platforms, or is it necessary to have a different inputs.conf file for each (which is what I have now). &lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2015 17:47:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Do-we-need-a-different-inputs-conf-file-for-Linux-and-Windows/m-p/189235#M37705</guid>
      <dc:creator>therabbit</dc:creator>
      <dc:date>2015-05-15T17:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Do we need a different inputs.conf file for Linux and Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Do-we-need-a-different-inputs-conf-file-for-Linux-and-Windows/m-p/189236#M37706</link>
      <description>&lt;P&gt;You can have the same inputs.conf flie and you will get an error message saying it cant find the file on both systems.&lt;/P&gt;

&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [batch://c:\appId\logs\*.log]
 index=...
 disabled=0
 ...

 [batch:///opt/appId/logs/*.log]
 index=...
 disabled=0
 ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It shouldnt hurt splunk at all, but it will be logged as error/warn on restarts etc.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2015 18:26:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Do-we-need-a-different-inputs-conf-file-for-Linux-and-Windows/m-p/189236#M37706</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2015-05-15T18:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Do we need a different inputs.conf file for Linux and Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Do-we-need-a-different-inputs-conf-file-for-Linux-and-Windows/m-p/189237#M37707</link>
      <description>&lt;P&gt;you will find this paculiarity in splunk apps across the board.  Usually you get around this issue by packaging your app with all the inputs disabled by default.  Then as part of the configuration the admin should enable the correct inputs as per their environment.   Below is an example of inputs.conf from the SoS app which I have modified on for use in a linux environment.  By default disabled = 1 on all of these.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script://./bin/ps_sos.sh]
interval = 15
sourcetype = ps
source = ps_sos
index = sos
disabled = 0

[script://./bin/lsof_sos.sh]
interval = 600
sourcetype = lsof
source = lsof_sos
index = sos
disabled = 0

[script://.\bin\sospowershell.cmd ps_sos.ps1]
source = ps_sos.ps1
sourcetype = ps
interval= 5
index = sos
disabled = 1 

[script://./bin/nfs-iostat_sos.py]
source = nfs-iostat_sos.py
sourcetype = nfs-iostat_sos
passAuth = splunk-system-user
interval = 5
index = sos
disabled = 1 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Note the Power Shell for windows and the other scripts for linux platforms.  &lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2015 18:28:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Do-we-need-a-different-inputs-conf-file-for-Linux-and-Windows/m-p/189237#M37707</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2015-05-15T18:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Do we need a different inputs.conf file for Linux and Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Do-we-need-a-different-inputs-conf-file-for-Linux-and-Windows/m-p/189238#M37708</link>
      <description>&lt;P&gt;And for that matter, you see how they do ./bin/ps_sos.sh?   what that will do is make it use the bin folder in the SOS app's directory.  So you could further simplify to this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  #windows batch
  [batch://.\logs\*.log]
  index=...
  disabled=0
  ...

 #linux batch
  [batch://./logs/*.log]
  index=...
  disabled=0
  ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 May 2015 18:32:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Do-we-need-a-different-inputs-conf-file-for-Linux-and-Windows/m-p/189238#M37708</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2015-05-15T18:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Do we need a different inputs.conf file for Linux and Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Do-we-need-a-different-inputs-conf-file-for-Linux-and-Windows/m-p/189239#M37709</link>
      <description>&lt;P&gt;And finally for even more granularity you could create both a windows and a linux version of your app.  See Unix TA and Windows TA for examples of that approach.  Then you can use a deployment server to make sure everyone gets the correct app.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2015 18:41:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Do-we-need-a-different-inputs-conf-file-for-Linux-and-Windows/m-p/189239#M37709</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2015-05-15T18:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Do we need a different inputs.conf file for Linux and Windows?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Do-we-need-a-different-inputs-conf-file-for-Linux-and-Windows/m-p/189240#M37710</link>
      <description>&lt;P&gt;Thanks for the answers. They were very helpful. I went with two TA's, one for each platform. I guess that means three Splunkbase entries. One for the app, and 2 for the TA's.&lt;/P&gt;</description>
      <pubDate>Sun, 17 May 2015 22:25:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Do-we-need-a-different-inputs-conf-file-for-Linux-and-Windows/m-p/189240#M37710</guid>
      <dc:creator>therabbit</dc:creator>
      <dc:date>2015-05-17T22:25:14Z</dc:date>
    </item>
  </channel>
</rss>

