Skip to content

Commit

Permalink
@timestamp is no longer included in _source by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ivoronin committed Aug 6, 2024
1 parent 9386d60 commit e98f549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tailer.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (t *Tailer) buildSearchRequestBody() *strings.Reader {
}

if len(t.ClibanaConfig.Search.Fields) > 0 {
query["_source"] = append(t.ClibanaConfig.Search.Fields, "@timestamp")
query["_source"] = t.ClibanaConfig.Search.Fields
}

body, err := json.Marshal(query)
Expand Down

0 comments on commit e98f549

Please sign in to comment.