{"action":"opened","issue":{"url":"https://api.github.com/repos/fluent/fluentd-kubernetes-daemonset/issues/145","repository_url":"https://api.github.com/repos/fluent/fluentd-kubernetes-daemonset","labels_url":"https://api.github.com/repos/fluent/fluentd-kubernetes-daemonset/issues/145/labels{/name}","comments_url":"https://api.github.com/repos/fluent/fluentd-kubernetes-daemonset/issues/145/comments","events_url":"https://api.github.com/repos/fluent/fluentd-kubernetes-daemonset/issues/145/events","html_url":"https://github.com/fluent/fluentd-kubernetes-daemonset/issues/145","id":326836765,"number":145,"title":"Sending logs to Graylog","user":{"login":"cloud-rocket","id":2440892,"avatar_url":"https://avatars3.githubusercontent.com/u/2440892?v=4","gravatar_id":"","url":"https://api.github.com/users/cloud-rocket","html_url":"https://github.com/cloud-rocket","followers_url":"https://api.github.com/users/cloud-rocket/followers","following_url":"https://api.github.com/users/cloud-rocket/following{/other_user}","gists_url":"https://api.github.com/users/cloud-rocket/gists{/gist_id}","starred_url":"https://api.github.com/users/cloud-rocket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloud-rocket/subscriptions","organizations_url":"https://api.github.com/users/cloud-rocket/orgs","repos_url":"https://api.github.com/users/cloud-rocket/repos","events_url":"https://api.github.com/users/cloud-rocket/events{/privacy}","received_events_url":"https://api.github.com/users/cloud-rocket/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-27T18:08:10Z","updated_at":"2018-05-27T18:08:10Z","closed_at":null,"author_association":"NONE","body":"There is no example of Graylog DaemonSet, I tried to create my own by modifying elasticsearch example. But I receive the following error:\r\n\r\n`[out_graylog] failed to flush the buffer. error_class=\"Encoding::UndefinedConversionError\" error=\"\\\"\\\\xC2\\\" from ASCII-8BIT to UTF-8\" plugin_id=\"out_graylog\"`\r\n\r\nI also noticed that `protocol` is not configured in fluentd.conf, so I tested UDP and TCP with the same result.\r\n\r\n`fluentd-daemonset-graylog.yaml` I created:\r\n```\r\napiVersion: extensions/v1beta1\r\nkind: DaemonSet\r\nmetadata:\r\n  name: fluentd\r\n  namespace: kube-system\r\n  labels:\r\n    k8s-app: fluentd-logging\r\n    version: v1\r\n    kubernetes.io/cluster-service: \"true\"\r\nspec:\r\n  template:\r\n    metadata:\r\n      labels:\r\n        k8s-app: fluentd-logging\r\n        version: v1\r\n        kubernetes.io/cluster-service: \"true\"\r\n    spec:\r\n      tolerations:\r\n      - key: node-role.kubernetes.io/master\r\n        effect: NoSchedule\r\n      containers:\r\n      - name: fluentd\r\n        image: fluent/fluentd-kubernetes-daemonset:v1.2-debian-graylog\r\n        env:\r\n          - name:  FLUENT_GRAYLOG_HOST\r\n            value: \"logs-graylog.default.svc.cluster.local\"\r\n          - name:  FLUENT_GRAYLOG_PORT\r\n            value: \"12201\"\r\n        resources:\r\n          limits:\r\n            memory: 200Mi\r\n          requests:\r\n            cpu: 100m\r\n            memory: 200Mi\r\n        volumeMounts:\r\n        - name: varlog\r\n          mountPath: /var/log\r\n        - name: varlibdockercontainers\r\n          mountPath: /var/lib/docker/containers\r\n          readOnly: true\r\n      terminationGracePeriodSeconds: 30\r\n      volumes:\r\n      - name: varlog\r\n        hostPath:\r\n          path: /var/log\r\n      - name: varlibdockercontainers\r\n        hostPath:\r\n          path: /var/lib/docker/containers\r\n```\r\n\r\nAny idea?\r\nThanks"}}
{"actor":{"display_login":"cloud-rocket"}}