Ok, I can’t figure it out and could not find any good examples on the internet, how do I use searchRawLogs endpoint?
Use case: For research, we want to export a “small” subset of data that matches a rawLog. Time is usually paramount, so I cannot use the data-export-api, as that gets queued for DAYS sometimes.
So I’m attempting to see if searchRawLogs will fulfill our needs for targeted export of raw logs via api calls. (I understand that we can use raw log search and export csv from the UI, but I need to do it via the API for integrations).
I’m trying this:
POST https://us-chronicle.googleapis.com/v1alpha/projects/<project>/locations/us/instances/<uuid>/:searchRawLogs BODY: {
"baseline_query": "/ASA/",
"baseline_time_range": {
"start_time": "2025-08-11T01:00:01Z",
"end_time": "2025-08-12T02:00:01Z”
}
no matter what I try, I just get 400, Request contains an invalid argument. I’m doing something stupid, but I can’t figure out what it is.
also unclear from the docs how to limit by log-type.. sure use the LogType Object, but what fields in the logType object are required? it just shows me the LogType from the logType endpoint perspective…
Thanks,
\- Mike