Hello, i am trying to run add oneshot from cli but keep getting following error:
C:\Program Files\Splunk\bin>splunk add oneshot "C:\csv\test.csv" -sourcetype csv -index csv_index -source test -auth admin:changeme
In handler 'oneshotinput': Only one "name" parameter can be specified.
help please
thanks
See this topic in the docs for information on the "rename-source" parameter:
http://docs.splunk.com/Documentation/Splunk/latest/Data/MonitorfilesanddirectoriesusingtheCLI
You can't name a source in oneshot (as it is already named as the file to add). Fortunately, a workaround discussion already exists: how-do-you-override-source-on-a-oneshot