Splunk Enterprise

Unable to connect to a Splunk add-on API via Ansible

mp32
New Member

I'm using Ansible to try to configure SPlunk Enterprise and more specifically- I want to create a user for the Splunk add-on TA-jira-service-desk-simple-addon

However, I'm getting this error when trying when trying to run my Ansible 

"Status code was -1 and not [200]: Connection failure: [Errno 104] Connection reset by peer"

 

Is this because I'm using a free-trial for Splunk? I deployed Splunk using the Splunk Enterprise API on AWS and I can connect to Splunk web no problem. Here's my Ansible playbook:

---
- name: Create Jira Service Desk User in Splunk
  hosts: splunk_sh
  gather_facts: false
  tasks:
    - name: Create user
      uri:
        url: "http://ec2-44-212-47-250.compute-1.amazonaws.com:8089/servicesNS/nobody/TA-jira-service-desk-simple-addon/ta_service_desk_simple_addon_account"
        method: POST
        user: "admin username"
        password: "admin password"
        body: "name=svc_jira&jira_url=test.url.com&username=test_username"
        status_code: 200

I redacted my admin username and password, but I tried using the URL above (Which is the DNS name) and I tried using just the IPv4 address with port 8089 and the endpoint and it gave me the same error. I made sure that port 8089 is also open on my AWS Security Group. What could be causing the issues?

Labels (1)
0 Karma

PaulPanther
Builder

Have you tried to execute a curl command directly on the instance  to set up the JIRA account as described on Configuration — TA-jira-service-desk-simple-addon 2 documentation

In the documentation there are also some more config parameter mentioned.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...