<?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 Has anyone deployed ansible playbook for splunk forwarder? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Has-anyone-deployed-ansible-playbook-for-splunk-forwarder/m-p/460803#M79549</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I am trying to set up ansible playbook for splunk forwarder. Though github completely doesnot help. Has anyone automated it? If i want to add logs for monitoring with multiple source types and with different logs? how can i do this:&lt;/P&gt;

&lt;P&gt;for ex: &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;name: add temporary monitor to create directory
command: "{{ splunkhome }} add monitor {{ item }} -sourcetype syslog -auth {{ splunkcreds }}"
with_items:
    - /var/log/syslog
notify: restart_splunk&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;how can i use multiple logs and for each logs each source type is necessary? Any suggestions ?&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 03:19:03 GMT</pubDate>
    <dc:creator>chaga</dc:creator>
    <dc:date>2020-09-30T03:19:03Z</dc:date>
    <item>
      <title>Has anyone deployed ansible playbook for splunk forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Has-anyone-deployed-ansible-playbook-for-splunk-forwarder/m-p/460803#M79549</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I am trying to set up ansible playbook for splunk forwarder. Though github completely doesnot help. Has anyone automated it? If i want to add logs for monitoring with multiple source types and with different logs? how can i do this:&lt;/P&gt;

&lt;P&gt;for ex: &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;name: add temporary monitor to create directory
command: "{{ splunkhome }} add monitor {{ item }} -sourcetype syslog -auth {{ splunkcreds }}"
with_items:
    - /var/log/syslog
notify: restart_splunk&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;how can i use multiple logs and for each logs each source type is necessary? Any suggestions ?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:19:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Has-anyone-deployed-ansible-playbook-for-splunk-forwarder/m-p/460803#M79549</guid>
      <dc:creator>chaga</dc:creator>
      <dc:date>2020-09-30T03:19:03Z</dc:date>
    </item>
  </channel>
</rss>

