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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...