Ir al contenido principal

Documentación de Splunk Event Schema

LogEntry

Título: LogEntry

Typeobject
RequiredNo
Additional properties[Any type: allowed]

Descripción: El formato de registro de cara al cliente para el servicio de observabilidad de Equinix.

Ejemplo:

{
"stream": {
"streamId": "b47f2eaf-d5c6-485c-a081-5d12333aa2e2",
"streamName": "Example Stream"
},
"source": {
"category": "validation",
"type": "validation_request",
"service": "metal",
"organizationId": "a2337a57-4ad0-4708-abc6-c0973055c91e"
},
"schema": "v1",
"timestamp": "2024-04-16T14:58:21.442334Z",
"level": "INFO",
"eventId": "e6de0ec4-027e-4733-aeb4-058c1fc53493",
"event": {
"eventName": "instance_provision_requested",
"status": "unauthorized",
"auth": {
"authType": "user",
"user": {
"userId": "1bec4119-a889-4809-89e9-c4572dc002ec",
"userName": "jdoe@equinix.com"
},
"role": {
"roleName": "collaborator"
}
},
"httpRequest": {
"host": "api.equinix.com",
"method": "PUT",
"path": "/metal/v1/projects/99f8e7f1-fe4a-441a-ade9-687743f080f6",
"scheme": "https",
"statusCode": 200,
"userAgent": "metal-cli/metal equinix-sdk-go/0.30.0",
"sourceIpAddress": "111.111.111.11"
},
"response": {}
}
}
PropertyPatternTypeDeprecatedDefinitionTitle/Description
+ streamNoobjectNo-Stream
+ sourceNoobjectNo-Source
+ schemaNoenum (of string)No-Indicates the schema version of this log entry.
+ timestampNostringNo-The timestamp at which this log entry was produced, in ISO8601 format.
+ levelNostringNo-A human-readable indication of the severity level of this log entry.
+ eventIdNostringNo-Unique identifier for this log event.
+ eventNoobjectNo-Event

1. Propiedad LogEntry > stream

Título: Stream

Typeobject
RequiredYes
Additional properties[Any type: allowed]

Descripción: Proporciona metadatos sobre el flujo de observabilidad que produjo esta entrada de registro; puede utilizarse para diferenciar las fuentes de datos en situaciones en las que varios flujos están escribiendo en el mismo destino.

Ejemplo:

{
"streamId": "e55f79d4-0d8a-4460-a566-ff93af4f90e4",
"streamName": "Example Stream"
}
PropertyPatternTypeDeprecatedDefinitionTitle/Description
+ streamIdNostringNo-Unique identifier of the observability stream that produced this log entry.
+ streamNameNostringNo-Name of the observability stream that produced this log entry.

1.1. Propiedad LogEntry > stream > streamId

Typestring
RequiredYes
Formatuuid

Descripción: Identificador único del flujo de observabilidad que produjo esta entrada de registro.

1.2. Propiedad LogEntry > stream > streamName

Typestring
RequiredYes

Descripción: Nombre del flujo de observabilidad que produjo esta entrada de registro.

Ejemplo:

"Example Stream"

2. Propiedad LogEntry > source

Título: Fuente

Typeobject
RequiredYes
Additional properties[Any type: allowed]

Descripción: Proporciona metadatos sobre la fuente de la que procede esta entrada de registro.

Ejemplo:

{
"category": "audit",
"type": "api_request",
"service": "metal",
"organizationId": "0e714017-6d9c-4dc5-828d-b8a156502496"
}
PropertyPatternTypeDeprecatedDefinitionTitle/Description
+ categoryNoenum (of string)No-Groups logs into high-level application categories.
+ typeNoenum (of string)No-Differentiates types of log events withing a particular category.
+ serviceNoenum (of string)No-Indicates the service that produced this log entry.
+ organizationIdNostringNo-Indicates the customer Organization ID with which this log entry is associated.
- projectIdNostringNo-Indicates the customer Project ID with which this log entry is associated.

2.1. Propiedad LogEntry > source > category

Typeenum (of string)
RequiredYes

Descripción: Agrupa los registros en categorías de aplicaciones de alto nivel.

Debe ser uno de:

  • "auditoría"
  • "validación"

2.2. Propiedad LogEntry > source > type

Typeenum (of string)
RequiredYes

Descripción: Diferencia los tipos de eventos de registro dentro de una categoría determinada.

Debe ser uno de:

  • "api_request"
  • "validation_request"

2.3. Propiedad LogEntry > source > service

Typeenum (of string)
RequiredYes

Descripción: Indica el servicio que produjo esta entrada de registro.

Debe ser uno de:

  • "Metal"

2.4. Propiedad LogEntry > source > organizationId

Typestring
RequiredYes
Formatuuid

Descripción: Indica el ID de organización del cliente con el que está asociada esta entrada de registro.

2.5. Propiedad LogEntry > source > projectId

Typestring
RequiredNo
Formatuuid

Descripción: Indica el ID del proyecto del cliente al que está asociada esta entrada de registro.

3. Propiedad LogEntry > schema

Typeenum (of string)
RequiredYes

Descripción: Indica la versión del esquema de esta entrada de registro.

Debe ser uno de:

  • "v1"

4. Propiedad LogEntry > timestamp

Typestring
RequiredYes
Formatdate-time

Descripción: La marca de tiempo en la que se produjo esta entrada de registro, en formato ISO8601.

Ejemplo:

"2024-04-16T14:58:21.442334Z"

5. Propiedad LogEntry > level

Typestring
RequiredYes

Descripción: Una indicación legible por humanos del nivel de gravedad de esta entrada de registro.

Ejemplo:

"INFO"

6. Propiedad LogEntry > eventId

Typestring
RequiredYes
Formatuuid

Descripción: Identificador único para este evento de registro.

7. Propiedad LogEntry > event

Título: Evento

Typeobject
RequiredYes
Additional properties[Any type: allowed]

Descripción: La carga útil del evento de registro específico de la aplicación. En el futuro, el formato específico variará en función de la categoría y el tipo de fuente, pero por ahora utilizamos un único esquema de eventos de registro.

Ejemplo:

{
"eventName": "project_updated",
"status": "unauthorized",
"auth": {
"authType": "user",
"user": {
"userId": "1bec4119-a889-4809-89e9-c4572dc002ec",
"userName": "jdoe@equinix.com"
},
"role": {
"roleName": "collaborator"
}
},
"httpRequest": {
"host": "api.equinix.com",
"method": "PUT",
"path": "/metal/v1/projects/99f8e7f1-fe4a-441a-ade9-687743f080f6",
"scheme": "http",
"statusCode": 200,
"userAgent": "metal-cli/metal equinix-sdk-go/0.30.0",
"sourceIpAddress": "111.111.111.11"
},
"resource": {},
"response": {}
}
PropertyPatternTypeDeprecatedDefinitionTitle/Description
+ eventNameNostringNo-An application-provided name for the event. Event names should be fixed by the application
(i.e. should not vary based on request parameters) to enable filtering/querying by the customer, and should carry
meaning to the customer. In the case of API request logs, this would correspond to an operation name.
+ statusNostringNo-An indication of the status associated with the event, e.g. request success/failure.
+ authNoobjectNo-AuthInfo
+ httpRequestNoobjectNo-HttpRequest
- resourceNoobjectNo-The resource associated with the request (for future use)
- requestNoobjectNo-Detailed request parameters (for future use)
- responseNoobjectNo-Detailed response body (for future use)

7.1. Propiedad LogEntry > event > eventName

Typestring
RequiredYes

Descripción: Un nombre proporcionado por la aplicación para el evento. Los nombres de los eventos deben ser fijados por la aplicación (es decir, no deben variar en función de los parámetros de la solicitud) para permitir el filtrado/consulta por parte del cliente, y deben tener un significado para el cliente. En el caso de los registros de solicitudes de la API, correspondería a un nombre de operación.

Ejemplos:

"project_updated"
"instance_provision_requested"

7.2. Propiedad LogEntry > event > status

Typestring
RequiredYes

Descripción: Indicación del estado asociado al evento, por ejemplo, éxito/fracaso de la solicitud.

Ejemplos:

"success"
"failed"
"unauthorized"

7.3. Propiedad LogEntry > event > auth

Título: AuthInfo

Typeobject
RequiredYes
Additional properties[Any type: allowed]

Descripción: Proporciona información de autenticación y autorización sobre la entidad de seguridad asociada al evento de registro. En la mayoría de los casos, éste será el que realizó la solicitud.

Ejemplo:

{
"authType": "user",
"user": {
"userId": "1bec4119-a889-4809-89e9-c4572dc002ec",
"userName": "jdoe@equinix.com"
},
"role": {
"roleName": "collaborator"
}
}
PropertyPatternTypeDeprecatedDefinitionTitle/Description
+ authTypeNoenum (of string)No-Indicates the type of entity for the principal associated with the request.
+ userNoobjectNo-User
+ roleNoobjectNo-Role

7.3.1. Propiedad LogEntry > event > auth > authType

Typeenum (of string)
RequiredYes

Descripción: Indica el tipo de entidad para el mandante asociado a la solicitud.

Debe ser uno de:

  • "user"

7.3.2. Propiedad LogEntry > event > auth > user

Título: Usuario

Typeobject
RequiredYes
Additional properties[Any type: allowed]

Descripción: Proporciona información identificativa sobre el usuario asociado al evento de registro.

Ejemplo:

{
"userId": "1bec4119-a889-4809-89e9-c4572dc002ec",
"userName": "jdoe@equinix.com"
}
PropertyPatternTypeDeprecatedDefinitionTitle/Description
+ userIdNostringNo-Unique user identifier; this is an opaque system-assigned ID that is not expected to be recognizable to people.
+ userNameNostringNo-Provides a more human-friendly display name for the user.
7.3.2.1. Propiedad LogEntry > event > auth > user > userId
Typestring
RequiredYes

Descripción: Identificador único de usuario; se trata de un ID opaco asignado por el sistema que no se espera que sea reconocible por las personas.

Ejemplo:

"1bec4119-a889-4809-89e9-c4572dc002ec"
7.3.2.2. Propiedad LogEntry > event > auth > user > userName
Typestring
RequiredYes

Descripción: Proporciona un nombre de visualización más amigable para el usuario.

Ejemplo:

"jdoe@equinix.com"

7.3.3. Propiedad LogEntry > event > auth > role

Título: Función

Typeobject
RequiredYes
Additional properties[Any type: allowed]

Descripción: Proporciona información sobre el rol asociado al evento de registro, que determina los permisos permitidos. Si el mandante tiene acceso a varios roles, indica el que asumió al realizar la solicitud.

Ejemplo:

{
"roleName": "collaborator"
}
PropertyPatternTypeDeprecatedDefinitionTitle/Description
+ roleNameNostringNo-The human-friendly display name for the role.
7.3.3.1. Propiedad LogEntry > event > auth > role > roleName
Typestring
RequiredYes

Descripción: El nombre para mostrar amigable para el rol.

Ejemplo:

"collaborator"

7.4. Propiedad LogEntry > event > httpRequest

Título: HttpRequest

Typeobject
RequiredYes
Additional properties[Any type: allowed]

Descripción: Proporciona detalles sobre la solicitud HTTP asociada con el evento de registro, si es que hay una (por ahora, siempre habrá una).

Ejemplo:

{
"host": "api.equinix.com",
"method": "PUT",
"path": "/metal/v1/projects/99f8e7f1-fe4a-441a-ade9-687743f080f6",
"scheme": "http",
"statusCode": 200,
"userAgent": "metal-cli/metal equinix-sdk-go/0.30.0",
"sourceIpAddress": "111.111.111.11"
}
PropertyPatternTypeDeprecatedDefinitionTitle/Description
+ hostNostringNo-The hostname to which the original HTTP request was made.
+ methodNostringNo-The HTTP request method.
+ pathNostringNo-The path portion of the original HTTP request URL.
+ schemeNoenum (of string)No-The HTTP request scheme
+ statusCodeNointegerNo-The HTTP status code that resulted from the processing of the request.
+ userAgentNostringNo-The user-agent that issued the request, as reported by the HTTP client.
+ sourceIpAddressNostringNo-The IP address from which the HTTP request was sent.

7.4.1. Propiedad LogEntry > event > httpRequest > host

Typestring
RequiredYes

Descripción: El nombre de host al que se realizó la solicitud HTTP original.

Ejemplo:

"api.equinix.com"

7.4.2. Propiedad LogEntry > event > httpRequest > method

Typestring
RequiredYes

Descripción: El método de solicitud HTTP.

Ejemplo:

"PUT"

7.4.3. Propiedad LogEntry > event > httpRequest > path

Typestring
RequiredYes

Descripción: La parte de la ruta de la URL original de la solicitud HTTP.

Ejemplo:

"/metal/v1/projects/99f8e7f1-fe4a-441a-ade9-687743f080f6"

7.4.4. Propiedad LogEntry > event > httpRequest > scheme

Typeenum (of string)
RequiredYes

Descripción: El esquema de petición HTTP

Debe ser uno de:

  • "http"
  • "https"

7.4.5. Propiedad LogEntry > event > httpRequest > statusCode

Typeinteger
RequiredYes

Descripción: El código de estado HTTP resultante del procesamiento de la solicitud.

Ejemplo:

200

7.4.6. Propiedad LogEntry > event > httpRequest > userAgent

Typestring
RequiredYes

Descripción: El usuario-agente que emitió la solicitud, según lo informado por el cliente HTTP.

Ejemplo:

"metal-cli/metal equinix-sdk-go/0.30.0"

7.4.7. Propiedad LogEntry > event > httpRequest > sourceIpAddress

Typestring
RequiredYes

Descripción: La dirección IP desde la que se envió la solicitud HTTP.

Ejemplo:

"111.111.111.11"

7.5. Propiedad LogEntry > event > resource

Typeobject
RequiredNo
Additional properties[Any type: allowed]

Descripción: El recurso asociado a la solicitud (para uso futuro)

Ejemplo:

{}

7.6. Propiedad LogEntry > event > request

Typeobject
RequiredNo
Additional properties[Any type: allowed]

Descripción: Parámetros detallados de la solicitud (para uso futuro)

Ejemplo:

{}

7.7. Propiedad LogEntry > event > response

Typeobject
RequiredNo
Additional properties[Any type: allowed]

Descripción: Cuerpo detallado de la respuesta (para uso futuro)

Ejemplo:

{}

---------------------------------------------------------------------------------------------------------------------------- Generado usando json-schema-for-humans en 19/07/2024 a las 16:25:20 -0500

¿Fue útil esta página?