Method: logs.import

Full name: projects.locations.instances.logTypes.logs.import

Import log telemetry.

HTTP request

POST https://chronicle.googleapis.com/v1alpha/{parent}/logs:import

Path parameters

Parameters
parent

string

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 source can be only one of the following:
  "inline_source": {
    object (LogsInlineSource)
  }
  // End of list of possible types for union field source.
}
Fields
hint

string

Optional. Opaque hint to help parsing the log.

Union field source.

source can be only one of the following:

inline_source

object (LogsInlineSource)

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 (Log)
    }
  ],
  "forwarder": string,
  "source_filename": string
}
Fields
logs[]

object (Log)

Required. The logs being imported.

forwarder

string

Required. The forwarder sending this import request.

source_filename

string

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.