Chapter 8. HTTP Event Collector

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 header
  • How to POST data (in JSON format) to the receiver for the HEC token
  • How to send data to the HEC using Web UI click events
  • How to log on to the HEC with JavaScript

What is the HEC?

Splunk ...

Get Splunk Essentials - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.