Getting Data In

When developing an add-on, is there any way to use the same inputs.conf for Windows and Linux?

mkhan_splunk
New Member

I am developing a Splunk add-on, I want that it to work on Linux as well as on a Windows machine.

In inputs.conf I am providing script path

[script://./bin/myscript.py]
disabled = 0

which is working in Linux but not in Windows.

If I change script

[script://.\bin\myscript.py]
disabled = 0

then it is working in Windows but not in Linux.

Is there any way to use same path for Windows and Linux?

thanks,
yusuf

0 Karma

lguinn2
Legend

Try this:

 [script://.[\\/]bin[\\/]myscript.py]
 disabled = 0
0 Karma

mkhan_splunk
New Member

did not work

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...