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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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