|
I am trying to create a scripted input that can run some Splunk CLI commands. Using Related question at http://splunk-base.splunk.com/answers/6707/splunk-admin-credentials-in-scripted-input. |
|
There isn't a CLI argument to do that. You would likely be better served by going through the REST API if possible. When you run a splunk CLI search, it will look in There's nothing to prevent you from writing that file out yourself before calling the CLI, but give careful consideration to the implications of doing so. First, any user who could read that directory could use those credentials (which is already true). Second, if you also run CLI commands directly as root (or splunk's service account), either the interactive user or the scripted input could get the wrong credentials. If you absolutely must call CLI commands directly, there's a workaround. Use Yup, making your own authToken file works. The caveats still apply, but it got me around my specific issue here.
(13 May '11, 11:42)
dwaddle ♦
|
