Skip to content

[responseOps] execution duration > 112 DAYS! causes error writing event log doc #127802

@pmuellr

Description

@pmuellr

Kibana version: 7.17.1

Describe the bug:

Seen in user logs:

invalid event logged: [event.duration]: "event.duration" must be a safe number; {
"@timestamp":"2022-03-15T17:11:57.912Z",
"event":{"provider":"alerting","action":"active-instance","kind":"alert","category":["infrastructure"],
"start":"2021-11-22T14:00:33.597Z",
"duration":9774684315000000},

That's one long rule execution! Back-of-the-envelope calculation on how long 9774684315000000 nanoseconds are: 113 days, and the GOOG concurs:

image

Steps to reproduce:

  1. not clear

Expected behavior:

An error should not occur.

Seems like we need to catch numbers bigger than Number.MAX_SAFE_INTEGER and either send that max value, or figure out if we can send a floating point or some other representation.

Metadata

Metadata

Assignees

Labels

Feature:AlertingFeature:EventLogTeam:ResponseOpsPlatform ResponseOps team (formerly the Cases and Alerting teams) t//bugFixes for quality problems that affect the customer experience

Type

No type
No fields configured for issues without a type.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions