Skip to content

Commit

Permalink
improve createEvent documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
efd6 committed Dec 16, 2024
1 parent f4f75ec commit de57f02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x-pack/filebeat/input/awss3/s3_objects.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,8 @@ func (p *s3ObjectProcessor) readFile(r io.Reader) error {
// createEvent constructs a beat.Event from message and offset. The value of
// message populates the event message field, and offset is used to set the
// log.offset field and, with the object's ARN and key, the @metadata._id field.
// If offset is negative, it is ignored and omitted from @metadata._id field
// construction and the log.offset field is not set.
// If offset is negative, it is ignored. No @metadata._id field is added to
// the event and the log.offset field is not set.
func (p *s3ObjectProcessor) createEvent(message string, offset int64) beat.Event {
event := beat.Event{
Timestamp: time.Now().UTC(),
Expand Down

0 comments on commit de57f02

Please sign in to comment.