Getting Data In

HTTP Event Collector: How to generate token through Splunk CLI ?

abhisawa
Explorer

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

0 Karma
1 Solution

frobinson_splun
Splunk Employee
Splunk Employee

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!

View solution in original post

esalesapns2
Path Finder

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.

gwalford
Path Finder

uuidgen is a great way to script this programatically.

 

 

0 Karma

frobinson_splun
Splunk Employee
Splunk Employee

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!

esalesapns2
Path Finder

I wish that link still worked...

jherring_splunk
Splunk Employee
Splunk Employee
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...