<?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 installing splunk UF using Ansible in Installation</title>
    <link>https://community.splunk.com/t5/Installation/installing-splunk-UF-using-Ansible/m-p/534700#M7044</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I wrote an ansible playbook that installs and configures splunk UF.&lt;/P&gt;&lt;P&gt;I have created two playbooks, one for linux machines and one for windows.&lt;/P&gt;&lt;P&gt;When I run the windows playbook it uses this comman to install the msi file:&lt;/P&gt;&lt;PRE&gt;msiexec.exe /i splunkuniversalforwarder.msi [&amp;lt;flag&amp;gt;=&amp;lt;value&amp;gt;]...[&amp;lt;flagN&amp;gt;=&amp;lt;value&amp;gt;]&lt;/PRE&gt;&lt;P&gt;I was able to set an indexer and a deployment server and to choose which of the windows eventlog inputs to recive data from and so...&lt;/P&gt;&lt;P&gt;&amp;nbsp;the only problem I have is that all the data is sent by default to the "main" index. I cant seem to find a flag that will&amp;nbsp; send the data at first to a different index.&lt;/P&gt;&lt;P&gt;I know I can change it in the inputs.conf file but the idea is to do all the configuration from the playbook without needing to change things later.&lt;/P&gt;&lt;P&gt;I want to send all the data from the eventlog to one index, can i set it in the installation command? if not, where can i set it so it won't send any data to the "main" index?&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;omer shira&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jan 2021 14:29:40 GMT</pubDate>
    <dc:creator>omershira</dc:creator>
    <dc:date>2021-01-04T14:29:40Z</dc:date>
    <item>
      <title>installing splunk UF using Ansible</title>
      <link>https://community.splunk.com/t5/Installation/installing-splunk-UF-using-Ansible/m-p/534700#M7044</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I wrote an ansible playbook that installs and configures splunk UF.&lt;/P&gt;&lt;P&gt;I have created two playbooks, one for linux machines and one for windows.&lt;/P&gt;&lt;P&gt;When I run the windows playbook it uses this comman to install the msi file:&lt;/P&gt;&lt;PRE&gt;msiexec.exe /i splunkuniversalforwarder.msi [&amp;lt;flag&amp;gt;=&amp;lt;value&amp;gt;]...[&amp;lt;flagN&amp;gt;=&amp;lt;value&amp;gt;]&lt;/PRE&gt;&lt;P&gt;I was able to set an indexer and a deployment server and to choose which of the windows eventlog inputs to recive data from and so...&lt;/P&gt;&lt;P&gt;&amp;nbsp;the only problem I have is that all the data is sent by default to the "main" index. I cant seem to find a flag that will&amp;nbsp; send the data at first to a different index.&lt;/P&gt;&lt;P&gt;I know I can change it in the inputs.conf file but the idea is to do all the configuration from the playbook without needing to change things later.&lt;/P&gt;&lt;P&gt;I want to send all the data from the eventlog to one index, can i set it in the installation command? if not, where can i set it so it won't send any data to the "main" index?&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;omer shira&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 14:29:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/installing-splunk-UF-using-Ansible/m-p/534700#M7044</guid>
      <dc:creator>omershira</dc:creator>
      <dc:date>2021-01-04T14:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: installing splunk UF using Ansible</title>
      <link>https://community.splunk.com/t5/Installation/installing-splunk-UF-using-Ansible/m-p/534725#M7045</link>
      <description>&lt;P&gt;There is no installer flag that controls which index is used.&lt;/P&gt;&lt;P&gt;Since you have a deployment server (DS) you should use that to configure the UFs.&amp;nbsp; All Ansible needs to do is install the UF and point it at the DS.&lt;/P&gt;&lt;P&gt;Set up the DS to push at least 2 apps to each UF: one for outputs and one for inputs.&amp;nbsp; The output app&amp;nbsp; (my_UF_outputs) has an outputs.conf file in it to direct the UF to your indexers.&amp;nbsp; The inputs app (my_UF_inputs) has an inputs.conf file which says which eventlog inputs to use and the index in which to store them.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 16:51:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/installing-splunk-UF-using-Ansible/m-p/534725#M7045</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-01-04T16:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: installing splunk UF using Ansible</title>
      <link>https://community.splunk.com/t5/Installation/installing-splunk-UF-using-Ansible/m-p/534756#M7047</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I will try it!&lt;/P&gt;&lt;P&gt;but I have a question:&lt;/P&gt;&lt;P&gt;In the playbook I am asking the user to choose which input from the eventlog they want to recive data from and what performance input.&lt;/P&gt;&lt;P&gt;For the eventlog inputs I put each one in a boolean variable and with it I creates later the flag of: "&lt;SPAN&gt;WINEVENTLOG_APP_ENABLE=1/0" for example.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For the preformance inputs I create a list of which inputs the user want.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So as you can understand I don't know before the playbook is being run what the UF will monitor.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a way to set in the inputs.conf (from the Deployment as you said) an index for all the data? I mean to set an index&amp;nbsp; for all the data that will be sent from that specific UF?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;omer shira&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 07:08:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/installing-splunk-UF-using-Ansible/m-p/534756#M7047</guid>
      <dc:creator>omershira</dc:creator>
      <dc:date>2021-01-05T07:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: installing splunk UF using Ansible</title>
      <link>https://community.splunk.com/t5/Installation/installing-splunk-UF-using-Ansible/m-p/534815#M7049</link>
      <description>&lt;P&gt;The inputs.conf file sent by the DS can specify the index for each input, even if they are not used.&lt;/P&gt;&lt;P&gt;The installer can enable the user's preferred inputs and the data will go to the index specified by the DS.&lt;/P&gt;&lt;P&gt;There is a caveat, however.&amp;nbsp; There will be a short delay from when the UF starts until it reads the configurations supplied by the DS.&amp;nbsp; During that time, eventlogs will be sent to index=main.&lt;/P&gt;&lt;P&gt;As an aside, IMO, users should not be allowed to choose what will be monitored.&amp;nbsp; That choice should be made according to company/IT policy regarding what data is needed for security or performance monitoring purposes.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 15:29:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/installing-splunk-UF-using-Ansible/m-p/534815#M7049</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-01-05T15:29:56Z</dc:date>
    </item>
  </channel>
</rss>

