Skip to content

Commit

Permalink
fixup! Unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
jfreden committed Mar 18, 2024
1 parent 6d217d7 commit 3ec53c5
Showing 1 changed file with 60 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,85 +2,129 @@
{
"@timestamp": "2024-03-13T10:34:33.289Z",
"log.level": "WARN",
"log.offset": 0,
"event.type": "info",
"event.kind": "event",
"fileset.name": "slowlog",
"elasticsearch.slowlog.auth.type": "REALM",
"elasticsearch.slowlog.id": "2",
"elasticsearch.slowlog.message": "[my-index/stZSoQ12R56VZORRItBKjA]",
"elasticsearch.slowlog.source": "{\"indices\":{\"field_security\":{\"grant\":\"read\",\"except\":\"confidential\"},\"names\":[\"foo\",\"bar\"],\"privileges\":\"admin\",\"query\":\"example\",\"allow_restricted_indices\":true}}",
"elasticsearch.index.id": "stZSoQ12R56VZORRItBKjA",
"elasticsearch.index.name": "my-index",
"message": "[my-index/stZSoQ12R56VZORRItBKjA]",
"elasticsearch.slowlog.source": "{\\\"indices\\\":{\\\"field_security\\\":{\\\"grant\\\":\\\"read\\\",\\\"except\\\":\\\"confidential\\\"},\\\"names\\\":[\\\"foo\\\",\\\"bar\\\"],\\\"privileges\\\":\\\"admin\\\",\\\"query\\\":\\\"example\\\",\\\"allow_restricted_indices\\\":true}}",
"elasticsearch.slowlog.took": "12.3ms",
"elasticsearch.slowlog.took_millis": "12",
"host.id": "a8BUD2RfQSu4aqtpePX7BA",
"input.type": "log",
"event.category": "database",
"user.name": "elastic",
"elasticsearch.slowlog.user.realm": "reserved",
"ecs.version": "1.2.0",
"service.name": "ES_ECS",
"event.dataset": "elasticsearch.index_indexing_slowlog",
"event.duration": 12000000,
"event.module": "elasticsearch",
"process.thread.name": "elasticsearch[runTask-0][write][T#7]",
"log.logger": "index.indexing.slowlog.index",
"elasticsearch.cluster.uuid": "0d2MZYNKR7Wqr2U6Cvpp7g",
"elasticsearch.node.id": "a8BUD2RfQSu4aqtpePX7BA",
"elasticsearch.node.name": "runTask-0",
"elasticsearch.cluster.name": "runTask"
"elasticsearch.cluster.name": "runTask",
"service.type": "elasticsearch"
},
{
"@timestamp": "2024-03-13T10:34:36.139Z",
"log.level": "WARN",
"log.offset": 980,
"event.type": "info",
"event.kind": "event",
"fileset.name": "slowlog",
"elasticsearch.slowlog.auth.type": "REALM",
"elasticsearch.slowlog.id": "3",
"elasticsearch.slowlog.message": "[my-index/stZSoQ12R56VZORRItBKjA]",
"elasticsearch.slowlog.source": "{\"indices\":{\"field_security\":{\"grant\":\"read\",\"except\":\"confidential\"},\"names\":[\"foo\",\"bar\"],\"privileges\":\"admin\",\"query\":\"example\",\"allow_restricted_indices\":true}}",
"elasticsearch.index.id": "stZSoQ12R56VZORRItBKjA",
"elasticsearch.index.name": "my-index",
"message": "[my-index/stZSoQ12R56VZORRItBKjA]",
"elasticsearch.slowlog.source": "{\\\"indices\\\":{\\\"field_security\\\":{\\\"grant\\\":\\\"read\\\",\\\"except\\\":\\\"confidential\\\"},\\\"names\\\":[\\\"foo\\\",\\\"bar\\\"],\\\"privileges\\\":\\\"admin\\\",\\\"query\\\":\\\"example\\\",\\\"allow_restricted_indices\\\":true}}",
"elasticsearch.slowlog.took": "5.9ms",
"elasticsearch.slowlog.took_millis": "5",
"host.id": "a8BUD2RfQSu4aqtpePX7BA",
"input.type": "log",
"event.category": "database",
"user.name": "elastic",
"elasticsearch.slowlog.user.realm": "reserved",
"ecs.version": "1.2.0",
"service.name": "ES_ECS",
"event.dataset": "elasticsearch.index_indexing_slowlog",
"event.duration": 5000000,
"event.module": "elasticsearch",
"process.thread.name": "elasticsearch[runTask-0][write][T#9]",
"log.logger": "index.indexing.slowlog.index",
"elasticsearch.cluster.uuid": "0d2MZYNKR7Wqr2U6Cvpp7g",
"elasticsearch.node.id": "a8BUD2RfQSu4aqtpePX7BA",
"elasticsearch.node.name": "runTask-0",
"elasticsearch.cluster.name": "runTask"
"elasticsearch.cluster.name": "runTask",
"service.type": "elasticsearch"
},
{
"@timestamp": "2024-03-13T10:34:37.257Z",
"log.level": "WARN",
"log.offset": 1958,
"event.type": "info",
"event.kind": "event",
"fileset.name": "slowlog",
"elasticsearch.slowlog.auth.type": "REALM",
"elasticsearch.slowlog.id": "4",
"elasticsearch.slowlog.message": "[my-index/stZSoQ12R56VZORRItBKjA]",
"elasticsearch.slowlog.source": "{\"indices\":{\"field_security\":{\"grant\":\"read\",\"except\":\"confidential\"},\"names\":[\"foo\",\"bar\"],\"privileges\":\"admin\",\"query\":\"example\",\"allow_restricted_indices\":true}}",
"elasticsearch.index.id": "stZSoQ12R56VZORRItBKjA",
"elasticsearch.index.name": "my-index",
"message": "[my-index/stZSoQ12R56VZORRItBKjA]",
"elasticsearch.slowlog.source": "{\\\"indices\\\":{\\\"field_security\\\":{\\\"grant\\\":\\\"read\\\",\\\"except\\\":\\\"confidential\\\"},\\\"names\\\":[\\\"foo\\\",\\\"bar\\\"],\\\"privileges\\\":\\\"admin\\\",\\\"query\\\":\\\"example\\\",\\\"allow_restricted_indices\\\":true}}",
"elasticsearch.slowlog.took": "2.5ms",
"elasticsearch.slowlog.took_millis": "2",
"host.id": "a8BUD2RfQSu4aqtpePX7BA",
"input.type": "log",
"event.category": "database",
"user.name": "elastic",
"elasticsearch.slowlog.user.realm": "reserved",
"ecs.version": "1.2.0",
"service.name": "ES_ECS",
"event.dataset": "elasticsearch.index_indexing_slowlog",
"event.duration": 2000000,
"event.module": "elasticsearch",
"process.thread.name": "elasticsearch[runTask-0][write][T#12]",
"log.logger": "index.indexing.slowlog.index",
"elasticsearch.cluster.uuid": "0d2MZYNKR7Wqr2U6Cvpp7g",
"elasticsearch.node.id": "a8BUD2RfQSu4aqtpePX7BA",
"elasticsearch.node.name": "runTask-0",
"elasticsearch.cluster.name": "runTask"
"elasticsearch.cluster.name": "runTask",
"service.type": "elasticsearch"
},
{
"@timestamp": "2024-03-13T10:34:38.373Z",
"log.level": "WARN",
"log.offset": 2937,
"event.type": "info",
"event.kind": "event",
"fileset.name": "slowlog",
"elasticsearch.slowlog.auth.type": "REALM",
"elasticsearch.slowlog.id": "5",
"elasticsearch.slowlog.message": "[my-index/stZSoQ12R56VZORRItBKjA]",
"elasticsearch.slowlog.source": "{\"indices\":{\"field_security\":{\"grant\":\"read\",\"except\":\"confidential\"},\"names\":[\"foo\",\"bar\"],\"privileges\":\"admin\",\"query\":\"example\",\"allow_restricted_indices\":true}}",
"elasticsearch.index.id": "stZSoQ12R56VZORRItBKjA",
"elasticsearch.index.name": "my-index",
"message": "[my-index/stZSoQ12R56VZORRItBKjA]",
"elasticsearch.slowlog.source": "{\\\"indices\\\":{\\\"field_security\\\":{\\\"grant\\\":\\\"read\\\",\\\"except\\\":\\\"confidential\\\"},\\\"names\\\":[\\\"foo\\\",\\\"bar\\\"],\\\"privileges\\\":\\\"admin\\\",\\\"query\\\":\\\"example\\\",\\\"allow_restricted_indices\\\":true}}",
"elasticsearch.slowlog.took": "2.2ms",
"elasticsearch.slowlog.took_millis": "2",
"host.id": "a8BUD2RfQSu4aqtpePX7BA",
"input.type": "log",
"event.category": "database",
"user.name": "elastic",
"elasticsearch.slowlog.user.realm": "reserved",
"ecs.version": "1.2.0",
"service.name": "ES_ECS",
"event.dataset": "elasticsearch.index_indexing_slowlog",
"event.duration": 2000000,
"event.module": "elasticsearch",
"process.thread.name": "elasticsearch[runTask-0][write][T#3]",
"log.logger": "index.indexing.slowlog.index",
"elasticsearch.cluster.uuid": "0d2MZYNKR7Wqr2U6Cvpp7g",
"elasticsearch.node.id": "a8BUD2RfQSu4aqtpePX7BA",
"elasticsearch.node.name": "runTask-0",
"elasticsearch.cluster.name": "runTask"
"elasticsearch.cluster.name": "runTask",
"service.type": "elasticsearch"
}
]

0 comments on commit 3ec53c5

Please sign in to comment.