In this chapter, we will learn about the HTTP Event Collector (HEC) that was released with Splunk v6. This addition has added a new way for websites and their processes to be monitored and improved.
In this chapter we will learn about the following topics:
What is the HEC?
How does the HEC work to improve website operations by sending HTTP and HTTPS events directly from an application to Splunk?
How data flows to the HEC
How to generate an HEC token
How to perform a
POST
request by placing the EC token in the request's authentication headerHow to
POST
data (in JSON format) to the receiver for the HEC tokenHow to send data to the HEC using Web UI click events
How to log on to the HEC with JavaScript