splunk / splunk/docker-splunk

How to find events that were sent to HEC?

Open
#625 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
549
Forks
277
Avg merge
3d 9h
Merged PRs (30d)
2

Description

Hi, I’m using splunk docker image with HEC to send log. I got Success message as the guideline. How could I query the log to see “hello world”, which was what I just sent?I tried a few search related curl commands but all of them just returns a very long xml. “hello world” is not in the response.
Such as

curl -k -u admin:1234567Aa! https://localhost:8089/services/search/jobs -d "search *"
Could anyways share me a search curl command that can return "hello world" that I sent? I only have one record so I don't need complicated filtering.

Same question in Splunk community: https://community.splunk.com/t5/Splunk-Search/How-to-find-events-that-were-sent-to-HEC/m-p/658181#M227357

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with EXAMPLES.html#create-standalone-with-hec and the issue's /services/search/jobs endpoint, then review the linked Splunk Community discussion for the expected search flow. Document a minimal way to query the HEC event and verify that the submitted “hello world” record is returned.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.