Splunk Enterprise

Why is linux script data showing the correct output but not getting correct data?

SK2
Loves-to-Learn

Configured the script based app for the databases which brings the data as follows. As mentioned below. 

When I am running the script at UF corrected expeced output. But when I push an application containg the same script it is fetching me different output.

Expected data after running the script in the UF is as below. 
Date, datname="sql", age="00:00:00"

Output we are receiving at splunk SH is like below. 
Date, datname="datname", age="age"

The script is kept in the location -> /opt/splunkforwarder/etc/apps/appname/bin - scripts  and /opt/splunkforwarder/etc/apps/appname/local - inputs.conf

For troubleshooting I have followed below steps. 
Removed and Pushed the app again
Tried restarting the UF

Can any one know or faced similar issue.
Please help me on this. 

 

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...