Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to find events that were sent to HEC? #625

Open
ningziwen opened this issue Sep 21, 2023 · 1 comment
Open

How to find events that were sent to HEC? #625

ningziwen opened this issue Sep 21, 2023 · 1 comment

Comments

@ningziwen
Copy link

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

@craigh1015
Copy link

The following will work:

curl -k -u 'admin:1234567Aa!' \
-d search="search *" \
-d output_mode=csv \
-d exec_mode=oneshot \
https://localhost:8089/services/search/jobs/export

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants