Skip to content

Does filebeat support cri-containerd log format? #7418

@hmtai

Description

@hmtai
  • Version: 5.5.1
  • Operating System: Ubuntu 16.04
  • cri-containerd: v1.1.0
    cri-containerd log like blow:
2018-06-26T01:38:02.846799306Z stderr F   InsecurePlatformWarning
2018-06-26T01:38:02.855746952Z stderr F /usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/connectionpool.py:768: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html
2018-06-26T01:38:02.85579783Z stderr F   InsecureRequestWarning)
2018-06-26T01:38:04.906935592Z stderr F /usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
2018-06-26T01:38:04.906978475Z stderr F   InsecurePlatformWarning
2018-06-26T01:38:04.952919128Z stderr F /usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/connectionpool.py:768: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html

My filebeat.yml

filebeat.prospectors:
- input_type: log
  paths:
    - /mnt/log/*.log

processors:
- add_cloud_metadata:

output.elasticsearch:
  hosts: ['elasticsearch:9200']
  username: elastic
  password: changeme

My error log:

2018/06/26 05:48:41.698643 json.go:34: ERR Error decoding JSON: json: cannot unmarshal number into Go value of type map[string]interface {}
2018/06/26 05:48:41.698999 json.go:34: ERR Error decoding JSON: json: cannot unmarshal number into Go value of type map[string]interface {}
2018/06/26 05:48:41.699149 json.go:34: ERR Error decoding JSON: json: cannot unmarshal number into Go value of type map[string]interface {}
2018/06/26 05:48:41.698385 json.go:34: ERR Error decoding JSON: json: cannot unmarshal number into Go value of type map[string]interface {}
2018/06/26 05:48:41.699275 json.go:34: ERR Error decoding JSON: json: cannot unmarshal number into Go value of type map[string]interface {}
2018/06/26 05:48:41.699351 json.go:34: ERR Error decoding JSON: json: cannot unmarshal number into Go value of type map[string]interface {}
2018/06/26 05:48:41.696862 json.go:34: ERR Error decoding JSON: json: cannot unmarshal number into Go value of type map[string]interface {}
2018/06/26 05:48:41.697490 json.go:34: ERR Error decoding JSON: json: cannot unmarshal number into Go value of type map[string]interface {}
2018/06/26 05:48:41.699576 json.go:34: ERR Error decoding JSON: json: cannot unmarshal number into Go value of type map[string]interface {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions