- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- LogsInlineSource
- Log
- LogLabel
- Try it!
Full name: projects.locations.instances.logTypes.logs.import
Import log telemetry.
HTTP request
POST https://chronicle.africa-south1.rep.googleapis.com/v1beta/{parent}/logs:import
Path parameters
Parameters | |
---|---|
parent |
Required. The parent, which owns this collection of logs. |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "hint": string, // Union field |
Fields | |
---|---|
hint |
Optional. Opaque hint to help parsing the log. |
Union field
|
|
inlineSource |
Required. Logs to be imported are specified inline. |
Response body
If successful, the response body is empty.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the parent
resource:
chronicle.logs.import
For more information, see the IAM documentation.
LogsInlineSource
A import source with the logs to import included inline.
JSON representation |
---|
{
"logs": [
{
object ( |
Fields | |
---|---|
logs[] |
Required. The logs being imported. |
forwarder |
Optional. The forwarder sending this import request. |
sourceFilename |
Optional. Source file name. Populated for certain types of files processed by the outofband processor which may have metadata encoded in it for use by the parser. |
Log
Represents a telemetry log.
JSON representation |
---|
{
"name": string,
"data": string,
"logEntryTime": string,
"collectionTime": string,
"environmentNamespace": string,
"labels": {
string: {
object ( |
Fields | |
---|---|
name |
Output only. The resource name of this log. Format: projects/{project}/locations/{region}/instances/{instance}/logTypes/{logType}/logs/{log} |
data |
Required. Raw data for the log entry. A base64-encoded string. |
logEntryTime |
Required. Timestamp of the log entry. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
collectionTime |
Required. The time at which the log entry was collected. Must be after the logEntryTime. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
environmentNamespace |
Optional. The user-configured environment namespace to identify the data domain the logs originated from. This namespace will be used as a tag to identify the appropriate data domain for indexing and enrichment functionality. |
labels |
Optional. The user-configured custom metadata labels. An object containing a list of |
additionals |
Optional. Metadata in JSON format. |
LogLabel
Label for a user configured custom metadata key.
JSON representation |
---|
{ "value": string, "rbacEnabled": boolean } |
Fields | |
---|---|
value |
The value of the label. |
rbacEnabled |
Indicates whether this label can be used for Data RBAC. |