I hope this is the correct category. I don’t wanna be one of “those” people
I’m using curl to grab information from the REST API “sources” using this command:
curl -XGET -u user:passwd ‘http://server.domain:9000/api/sources?range=864000&size=5000’
I’m getting the information I expect, but am curious if I can filter this any further to exclude the schema information that it is providing that I don’t need. For instance, is it possible to craft the request to only return the data in the “sources”:“object” part of the schema? Now we can filter with awk and sed and get what is needed, but if we could get the filtered output of only the hostnames that are sending logs, that would be awesome.
Thanks for any input.
jeff