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!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...