All Apps and Add-ons

How to run Windows commands in the Command Modular Input

raziasaduddin
Path Finder

Does it require "\" to be escaped if I also have to put paths in CLI parameters? I can't save my command:

c:\tools\command.exe c:\logs\stuff\ -d 3 -n 11 -o "c:\output\output.txt"

How would I write this / add this to the Command Modular Input?

1 Solution

Damien_Dallimor
Ultra Champion

Replied to by email.

View solution in original post

0 Karma

Damien_Dallimor
Ultra Champion

Replied to by email.

0 Karma

raziasaduddin
Path Finder

From Damien:

A single backslash should work :

Make sure that the command name and command arguments are in separate fields.

Command name : c:\tools\mycommand.exe

Command arguments : c:\logs\stuff\ -d 3 -n 11 -o c:\output\output.txt

Also look in splunkd.log for any errors.

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 ...