Method: logs.import

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

Import log telemetry.

HTTP request


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:
  "inlineSource": {
    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:

inlineSource

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,
  "sourceFilename": string
}
Fields
logs[]

object (Log)

Required. The logs being imported.

forwarder

string

Required. The forwarder sending this import request.

sourceFilename

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.