Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docker log driver] cleanup output #14615

Merged

Conversation

fearful-symmetry
Copy link
Contributor

@fearful-symmetry fearful-symmetry commented Nov 19, 2019

This PR addresses two issues: adding container labels and metadata to events, and making the output of the plugin ECS-compliant.

I added @henrikno to the review list, since I'd like input about any other bits of metadata that could be added.

Here's what the output looks like now:

{
  "_index": "dockerbeat-test",
  "_type": "_doc",
  "_id": "et0WgG4BjXmy5XAyo_2I",
  "_version": 1,
  "_score": null,
  "_source": {
    "@timestamp": "2019-11-18T19:56:36.635Z",
    "message": "This is a test log line",
    "container": {
      "labels": {},
      "id": "c7a30a2ab012c609dbb36fc8773ebcfb553827af4082c30d4f630c8ab79735dd",
      "name": "/fervent_black",
      "image": {
        "name": "debian:jessie"
      }
    }
  },
  "fields": {
    "@timestamp": [
      "2019-11-18T19:56:36.635Z"
    ]
  },
  "sort": [
    1574106996635
  ]
}

@fearful-symmetry fearful-symmetry added the Team:Integrations Label for the Integrations team label Nov 19, 2019
@fearful-symmetry fearful-symmetry requested review from henrikno and a team November 19, 2019 16:10
@fearful-symmetry fearful-symmetry self-assigned this Nov 19, 2019
@fearful-symmetry fearful-symmetry merged commit 3746cb4 into elastic:feature/dockerbeat Nov 20, 2019
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Integrations Label for the Integrations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants