Getting Data In

Has anyone deployed ansible playbook for splunk forwarder?

chaga
New Member

Hi all,

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:

for ex:

  • name: add temporary monitor to create directory command: "{{ splunkhome }} add monitor {{ item }} -sourcetype syslog -auth {{ splunkcreds }}" with_items: - /var/log/syslog notify: restart_splunk

how can i use multiple logs and for each logs each source type is necessary? Any suggestions ?

0 Karma
Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...