top of page
Recent Posts

How to integrate Ansible Tower with Splunk logging.

Updated: Oct 3, 2021

As we know, Ansible Tower can be integrate with Splunk logging using the Splunk HTTP Event Collector (HEC). And we need to configuring a Splunk logging aggregator and add the full URL of the HTTP Event Collector host in the Ansible Tower.


In my 1st Splunk related post, we have discussed on configuring HTTP Event Collector (HEC). See "How To Install Splunk in Red Hat Enterprise Linux 7" for more details.


Step:1 To configure the Ansible Tower’s to integrate Splunk logging integration

Select Settings from the left side menu and then click System, as below

ree

Select Settings from the left side menu and then click System, as below

ree

Note: OFF/DISABLE "ENABLE/DISABLE HTTPS CERTIFICATE VERIFICATION" if required.


Select Save and click test to verify the configuration. we will get a massage, as below.

ree

We can also verify the configuration from the api URL, as below

ree

Verify the Ansible Logs from the Splunk:

We can search the logs in "Search & Reporting" windows from the Splunk Web based GUI.

1. Click the Search & Reporting from the Home page.

2. Click the Data Summary from the Search page

2 Click SourceTypes > httpevent, as below.

ree

Now we can see the event message from the atower.lab.munshibari.biz, as below.

ree

Okay, the Ansible Tower’s and the Splunk integration working fine. we can test something more.


Launch a Job Template from Ansible Tower:

We are going to launch a Job Template from the Ansible Tower GUI, as below.

ree

This Job Template will do repetitive ping to Ansible Tower itself. and the successful reports shows as below.

ree

We can see, the Job Template ID is 194 and the total task is 102 on the above screen shot.


And the last ping TASK that started from 309 and ended 311 as well as the PLAY RECAP started from 312 and ended 315.


Verify the Ansible Job Template Logs from the Splunk:

we can see the HTTP Events summary in the Splunk with the same Template ID (194) as well as the totals tasks number (102), as below.

ree

The PLAY RECAP that started from 312 and ended 315.


We can also see every task information, as below.

ree

It's last ping TASK that started from 309 and ended 311.


Hope this post will help.

Comments


!
Widget Didn’t Load
Check your internet and refresh this page.
If that doesn’t work, contact us.

JazakAllah© 2020. All Rights Reserved

keep growing your community bigger, Keep your IT knowledge up-to-date.

  • LinkedIn
bottom of page