Getting Data In

Why are Credentials not working for splunk universal forwarder agent

Poojitha
Path Finder

Hi All,

  I have installed splunk universal forwarder on linux instance. Version is 8.2.4. I have created admin account as well through ansible play.  I am passing username and password through ansible command line, creating user-seed.conf file and copying the username and password here.

This way :

- name: Copy Contents to user-seed.conf file
copy:
      dest: /opt/splunkforwarder/etc/system/local/user-seed.conf
      content: |
           [user_info]
           USERNAME = "{{ username }}"
           PASSWORD = "{{ password }}"

user-seed.conf file is getting created successfully. I am starting splunk UF through ansible play later . So, user seed.conf file gets deleted and passwd file is getting created successfully.

But when I try to run command ./splunk list forward-server, it asks me for username and password. I gave same credentials what I gave through ansible command line. But login is getting failed.

I am not understanding what is going wrong. Please help me 

Regards,
NVP
Labels (2)
Tags (1)
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, ...