I've tested the new APIs with my Unofficial API Collectors. You can check here for the specific part of the code where I use the new API to upload logs.

Hope this helps!
-mike
Hi,
I'm struggling to figure out the exact endpoint format for importing UDM events using the Google SecOps API. I've been looking at the documentation here: https://cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.events/import
The docs specify that the HTTP request should be: POST https://chronicle.googleapis.com/v1alpha/{parent}/events:import
But the documentation does not clearly explain what the {parent} value should actually be.
I had a similar issue with the logs import endpoint:
https://cloud.google.com/chronicle/docs/reference/rest/v1alpha/projects.locations.instances.logTypes.logs/import
In that case, endpoint format was logTypes/{log_type}/logs:import like mentionned previously.
Could someone please help me understand what the correct format for the parent parameter should be for UDM event imports? Is it something like projects/{project}/locations/{location}/instances/{instance} or is there a different format?
Thanks in advance,
I've also got some work-in-progress on covering the logs:import endpoint:
Chris Martin describes configuring a Forwarder before using that API in this post:
Hi everyone,
Thank you all for your very helpful responses. I have looked at the sample code you shared, but I'm still having trouble getting the API to work.
want to clarify that the log import works perfectly fine for me, but I'm encountering a 400 error: "Client Error: Bad Request" for the following URL when trying to import UDM events:
Here’s the body of the POST request I’m trying to send:
{
"inline_source": {
"events": =
{
"udm": =
{
"metadata": {
"eventTimestamp": "2021-07-01T19:39:08.304950563Z",
"eventType": "SCAN_HOST",
"vendorName": "Telemetry4u",
"productName": "Inspectotron"
},
"target": {
"hostname": "workbox10"
},
"securityResult": =
{
"category": ="DATA_AT_REST"],
"summary": "Personal",
"description": "Files Labeled: 21+"
},
{
"category": ="DATA_AT_REST"],
"summary": "PCI",
"description": "Files Labeled: 21+"
}
]
}
]
}
]
}
}
If anyone has suggestions on what might be causing this error, I would greatly appreciate it. Thanks again for your help