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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...