How to query a local file in SumoLogic?
I'm trying to determine if/how I can use sumologic to look at a single static log file. The use case is that I have a log file emailed to me and want to use sumologic to query the log file. The goal here is to be able to use my queries and familiar sumologic tools both via normal collectors but also more ad-hoc requests (e.g. from a developer running the same application locally). So in the case of the log files being emailed, they would just exist on my local machine where there isn't a collector running (i.e. everything else is in AWS).
I've done some digging into the docs but don't see how to do this or if it is even possible. I did come across something in a somewhat unrelated api documentation that seems to a) match my use case and b) indicates it is possible. The problem is that it doesn't explicitly say how to query the single file.
You can run the following query against the downloaded file in Sumo Logic to determine the IP addresses for each deployment.
Any info on how to specifically make this happen would be greatly appreciated. Thanks!
-
Hi Patrick.
If you want to do a 1 time upload I'd suggest posting your file to an HTTP Source. You can use a Curl command to upload your file to the HTTP Source endpoint provided after creating your Source.
Please sign in to leave a comment.
Comments
1 comment