Create/Post Logs through API Call
Is it possible to create or post logs directly to a collector through an API call?
-
Hi Mariel,
Sure, you can post to a Sumo Logic HTTP source. More information can be found via the following help.
https://service.sumologic.com/help/Default.htm#Configuring_an_HTTP_Source.htm
Once you have an HTTP Source configured you can post to the provided URL using your method of choice. For example:
curl -v -X POST -d "This is my test message" https://collectors.sumologic.com/receiver/v1/http/[UniqueHTTPCollectorCode]
More examples on posting to an HTTP source can be found in the following additional documentation.
https://service.sumologic.com/help/Default.htm#Uploading_Files_to_an_HTTP_Source.htm
Please sign in to leave a comment.
Comments
2 comments