Skip to content

Disable migration in docker event fields#9947

Merged
exekias merged 1 commit intoelastic:masterfrom
exekias:no-migration-docker--fields
Jan 9, 2019
Merged

Disable migration in docker event fields#9947
exekias merged 1 commit intoelastic:masterfrom
exekias:no-migration-docker--fields

Conversation

@exekias
Copy link
Copy Markdown
Contributor

@exekias exekias commented Jan 8, 2019

quick follow-up from #9856 (comment)

@exekias exekias added review needs_backport PR is waiting to be backported to other branches. v6.7.0 labels Jan 8, 2019
@exekias exekias requested a review from ruflin January 8, 2019 11:27
@exekias exekias requested a review from a team as a code owner January 8, 2019 11:27
@exekias exekias merged commit e09cbe2 into elastic:master Jan 9, 2019
@ruflin
Copy link
Copy Markdown
Contributor

ruflin commented Jan 9, 2019

@exekias Bit too late but would have preferred not to merge this before we discuss this further in the team as it's a more general discussion on what we should do related to alias fields to ECS. Can you bring it up in the next team meeting?

@exekias exekias removed the needs_backport PR is waiting to be backported to other branches. label Jan 9, 2019
@exekias
Copy link
Copy Markdown
Contributor Author

exekias commented Jan 9, 2019

We can always add them later, let's discuss it. I would prefer if you bring it as you know more details about the plan with ECS

@ruflin
Copy link
Copy Markdown
Contributor

ruflin commented Jan 10, 2019

Will bring it up.

exekias added a commit to exekias/beats that referenced this pull request Jan 18, 2019
exekias added a commit that referenced this pull request Jan 22, 2019
* Add docker `event` metricset (#9856)

* Add docker `event` metricset

This metricset will retrieve events coming from the Docker events
API [0].

Example output:

```
"docker": {
  "event": {
    "id": "8c229155b039c2adcb4fab1f987f35a0d1f913dfaa95f3113ed6e4f91eb5398c",
    "from": "busybox",
    "type": "container",
    "action": "die",
    "actor": {
      "id": "8c229155b039c2adcb4fab1f987f35a0d1f913dfaa95f3113ed6e4f91eb5398c",
      "attributes": {
        "image": "busybox",
        "name": "distracted_lichterman",
        "exitCode": "0"
      }
    },
    "time": "2019-01-02T22:41:02.000Z",
    "status": "die"
  }
}
```

Actor attributes will container labels in the case of container
events, the module will perform dedotting (if enabled) on them.

[0] https://docs.docker.com/engine/api/v1.37/#operation/SystemEvents

* Add tests

* Update changelog

* Add missing header

* Add missing file

* Adapt to ECS

* Use a cheaper event for tests

* Close docker client on module shutdown

* Update data

* clean created container

* fix image pull

(cherry picked from commit eef102d)

* Disable migration in docker event fields (#9947)

* Move back docker event fields to it's namespace (#10073)

* Move back docker event fields to it's namespace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants