UI for HTTP event collector is adding an entry in inputs.conf with a related token which gets generated while creating this input.
Is there any way we can generate this token on command line?
Thanks
Hi @abhisawa,
Here is documentation on using the CLI to generate a token:
http://dev.splunk.com/view/event-collector/SP-CAAAE7C#createanhttpeventcollectortokenusingthecli
Hope this helps!
Yes, you can use "uuidgen" (with no arguments) from the linux command line to generate a token like the one the Splunk GUI does when it creates a new HEC input.
uuidgen is a great way to script this programatically.
Hi @abhisawa,
Here is documentation on using the CLI to generate a token:
http://dev.splunk.com/view/event-collector/SP-CAAAE7C#createanhttpeventcollectortokenusingthecli
Hope this helps!
I wish that link still worked...
Here's the Splunk doc for it:
https://docs.splunk.com/Documentation/Splunk/7.3.2/Data/UseHECfromtheCLI