Skip to content

Commit

Permalink
Rename Redis input read_timestamp to event.created (#9924)
Browse files Browse the repository at this point in the history
To follow ECS, read_timestamp was renamed to `event.created` for the Redis slowlog input.
  • Loading branch information
ruflin authored Jan 15, 2019
1 parent 68d9440 commit 57d44ca
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Modify apache/error dataset to follow ECS. {pull}8963[8963]
- Rename many `traefik.access.*` fields to map to ECS. {pull}9005[9005]
- Fix parsing of GC entries in elasticsearch server log. {issue}9513[9513] {pull}9810[9810]
- Rename `read_timestamp` to `event.created` for Redis input. {pull}9924[9924]
- Rename many `iis.error.*` fields to map to ECS. {pull}9955[9955]
- Rename a few `logstash.*` fields to map to ECS, remove logstash.slowlog.message. {pull}9935[9935]
- Rename a few `mysql.*` fields to map to ECS. {pull}10008[10008]
Expand Down
5 changes: 5 additions & 0 deletions dev-tools/ecs-migration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,11 @@
to: http.version
alias: true

# Filebeat Redis Input

- from: read_timestamp
to: event.created
alias: false

# Auditbeat

Expand Down
4 changes: 3 additions & 1 deletion filebeat/input/redis/harvester.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ func (h *Harvester) Run() error {
"redis": common.MapStr{
"slowlog": subEvent,
},
"read_timestamp": common.Time(time.Now().UTC()),
"event": common.MapStr{
"created": time.Now(),
},
},
}

Expand Down

0 comments on commit 57d44ca

Please sign in to comment.