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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...