<?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 Universal forwarder scripted install in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Universal-forwarder-scripted-install/m-p/119032#M24719</link>
    <description>&lt;P&gt;Does anyone know if it is possible to automatically add the current_only = [0|1] attribute in a scripted Universal Forwarder install?  The inputs.conf I am referencing is located here:&lt;/P&gt;

&lt;P&gt;C:\Program Files (x86)\SplunkUniversalForwarder\etc\apps\Splunk_TA_windows\local\inputs.conf&lt;/P&gt;

&lt;P&gt;[WinEventLog://Application]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
current_only = 1&lt;/P&gt;

&lt;P&gt;[WinEventLog://Security]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
current_only = 1&lt;/P&gt;

&lt;P&gt;[WinEventLog://System]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
current_only = 1&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 16:18:43 GMT</pubDate>
    <dc:creator>aberdamy</dc:creator>
    <dc:date>2020-09-28T16:18:43Z</dc:date>
    <item>
      <title>Universal forwarder scripted install</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-forwarder-scripted-install/m-p/119032#M24719</link>
      <description>&lt;P&gt;Does anyone know if it is possible to automatically add the current_only = [0|1] attribute in a scripted Universal Forwarder install?  The inputs.conf I am referencing is located here:&lt;/P&gt;

&lt;P&gt;C:\Program Files (x86)\SplunkUniversalForwarder\etc\apps\Splunk_TA_windows\local\inputs.conf&lt;/P&gt;

&lt;P&gt;[WinEventLog://Application]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
current_only = 1&lt;/P&gt;

&lt;P&gt;[WinEventLog://Security]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
current_only = 1&lt;/P&gt;

&lt;P&gt;[WinEventLog://System]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
current_only = 1&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:18:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-forwarder-scripted-install/m-p/119032#M24719</guid>
      <dc:creator>aberdamy</dc:creator>
      <dc:date>2020-09-28T16:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Universal forwarder scripted install</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-forwarder-scripted-install/m-p/119033#M24720</link>
      <description>&lt;P&gt;Have you considered rolling out the inputs.conf (and its surrounding app) automatically, using the Splunk Deployment Server or any 3rd party configuration management tool?&lt;BR /&gt;
That would not only simplify your scripted install, but would also make future maintenance nightmares disappear.&lt;/P&gt;

&lt;P&gt;As for your question itself, you can do this from the CLI:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk _internal call /servicesNS/nobody/Splunk_TA_windows/properties/inputs/WinEventLog%3A%2F%2FSecurity/current_only -post:value 1 -auth admin:pass
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That should be integrateable into your install script.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2014 22:35:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-forwarder-scripted-install/m-p/119033#M24720</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-04-03T22:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Universal forwarder scripted install</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-forwarder-scripted-install/m-p/119034#M24721</link>
      <description>&lt;P&gt;We are rolling the Universal Forwarder out via SCCM and we have a batch file that looks at the Operating system architecture and writes to the "/etc/system/local inputs.conf" file to monitor the firewall log if it is a Windows 2003 system. Would the splunk_internal call command work with this?  If so, where would I insert it? Part of batch:&lt;/P&gt;

&lt;P&gt;start /wait msiexec /i splunkforwarder-6.msi &lt;BR /&gt;
INSTALLDIR="%PROGRAMFILES%\SplunkUniversalForwarder" RECEIVING_INDEXER="server:9997" WINEVENTLOG_APP_ENABLE=1 WINEVENTLOG_SEC_ENABLE=1 WINEVENTLOG_SYS_ENABLE=1 DISPLAY_WINDOWS_TA_DIALOG=1 LAUNCHSPLUNK=0 /quiet&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:20:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-forwarder-scripted-install/m-p/119034#M24721</guid>
      <dc:creator>aberdamy</dc:creator>
      <dc:date>2020-09-28T16:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Universal forwarder scripted install</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Universal-forwarder-scripted-install/m-p/119035#M24722</link>
      <description>&lt;P&gt;You'd have to run that after Splunk's installation, and probably only while it's running.&lt;/P&gt;

&lt;P&gt;It might be easier to add that line to the config file directly from your script, especially if you already are writing to inputs.conf.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2014 15:31:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Universal-forwarder-scripted-install/m-p/119035#M24722</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-04-08T15:31:23Z</dc:date>
    </item>
  </channel>
</rss>

