{"push_id":3627328101,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"313e6d16bec56d0acf799ab06cd2072dabde65bc","before":"9c848a97a1906aa68a986ce0da0620501e02d0f9","commits":[{"sha":"313e6d16bec56d0acf799ab06cd2072dabde65bc","author":{"name":"Carlos Pérez-Aradros Herce","email":"ab5e2bca84933118bbc9d48ffaccce3bac4eeb64@elastic.co"},"message":"Add `container` input, deprecate `docker` in favor of it (#12162)\n\nAdd `container` input, deprecate `docker` in favor of it\r\n\r\nThis change adds a new container input for better support of CRI based\r\nscenarios.\r\n\r\n`docker` input was acting as a catch all input for all container related\r\ncases, but its config options were very opinionated towards Docker, with\r\nsome issues:\r\n\r\n * `containers.ids` setting was good to abstract logs path, but we have\r\n seen many cases were logs are not under default location, or follow a\r\n different path pattern (ie CRI logs).\r\n * `containers.*` settings have shown counter intuitive for many users,\r\n in many cases we have seen people writing `container.*` instead, ending\r\n up in a config error.\r\n * Some existing settings (`combine_partials`, `cri.parse_flags`) were\r\n introduced as a way to offer a backwards compatible upgrades, but it\r\n doesn't really make sense to disable them, as they handle actual\r\n format behaviors.\r\n\r\nThis new `container` input offers the same wrapper to read log files\r\nfrom containers with the following changes:\r\n\r\n * It exposes `paths` as the `log` input, instead of `containers.ids`\r\n and `containers.path`.\r\n * `parse_flags` and `combine_partials` are hardcoded, as there is no\r\n good reason to disable them.\r\n * `stream` selector is still available, under root settings.\r\n * It allows to select the log format (also atodetect it), giving room\r\n for future format changes. `format` can be `auto` (default), `docker`\r\n    and `CRI`.\r\n\r\nExample configurations:\r\n\r\nGet Docker logs:\r\n\r\n```\r\nfilebeat.inputs:\r\n- type: container\r\n  paths:\r\n    - /var/lib/docker/containers/*/*.log\r\n```\r\n\r\nGet Kubernetes logs:\r\n\r\n```\r\nfilebeat.inputs:\r\n- type: container\r\n  paths:\r\n    - /var/log/pods/*/*/*.log\r\n    # this could also be used:\r\n    #- /var/log/containers/*.log\r\n```\r\n\r\nPrevious `docker` input is deprecated in favor of this, to be removed in 8.0","distinct":true,"url":"https://api.github.com/repos/indux/beats/commits/313e6d16bec56d0acf799ab06cd2072dabde65bc"}]}
{"actor":{"display_login":"pull"}}