Uploaded image for project: 'OpenShift Logging'
  1. OpenShift Logging
  2. LOG-1575

Rejected by Elasticsearch and unexpected json-parsing

XMLWordPrintable

    • False
    • False
    • NEW
    • NEW
    • Undefined
    • Logging (Core) - Sprint 206, Logging (Core) - Sprint 207, Logging (Core) - Sprint 208

      Fluentd is getting a 400 - Rejected by Elasticsearch

      2021-06-28T11:59:35.424914929Z 2021-06-28 11:59:35 +0000 [warn]: dump an error event: error_class=Fluent::Plugin::ElasticsearchErrorHandler::ElasticsearchError error="400 - Rejected by Elasticsearch" location=nil tag="kubernetes.var.log.containers.dev-mongodb-arbiter-0_e4589f-dev_mongodb-arbiter-c067f80aa23f9a7c25515c47931d2355f1013d448c7c9161b7afa8c6c3fc5015.log" time=2021-06-28 11:59:32.389462043 +0000 record={"docker"=>

      Unknown macro: {"container_id"=>"c067f80aa23f9a7c25515c47931d2355f1013d448c7c9161b7afa8c6c3fc5015"}

      , "kubernetes"=>{"container_name"=>"mongodb-arbiter", "namespace_name"=>"e4589f-dev", "pod_name"=>"dev-mongodb-arbiter-0", "container_image"=>"docker-remote.artifacts.example.com/bitnami/mongodb:4.4.4-debian-10-r0", "container_image_id"=>"docker-remote.artifacts.example.com/bitnami/mongodb@sha256:95abfb776bb4e6ee34f7b5b1c811f978d132136035deacdb7143f798f0343a31", "pod_id"=>"feecd477-6575-4cce-84f4-3561a6bc5cd7", "host"=>"test.example.com", "master_url"=>"https://kubernetes.default.svc", "namespace_id"=>"96c9ee3b-b7e0-4d05-ae6f-06da77b2959c", "namespace_labels"=>

      Unknown macro: {"environment"=>"dev", "name"=>"e4589f", "profile_id"=>"136", "project_type"=>"user", "provisioned-by"=>"sample", "quota"=>"small", "devops_example_ca/sample-app"=>"e4589f"}

      , "flat_labels"=>["controller-revision-hash=dev-mongodb-arbiter-75bfbc6bbc", "app_kubernetes_io/component=arbiter", "app_kubernetes_io/instance=dev", "app_kubernetes_io/managed-by=Helm", "app_kubernetes_io/name=mongodb", "helm_sh/chart=mongodb-10.7.1", "statefulset_kubernetes_io/pod-name=dev-mongodb-arbiter-0"]}, "message"=>{"t"=>

      Unknown macro: {"$date"=>"2021-06-28T11}

      , "s"=>"I", "c"=>"NETWORK", "id"=>22944, "ctx"=>"conn245040", "msg"=>"Connection ended", "attr"=>{"remote"=>"10.97.50.1:54034", "connectionId"=>245040, "connectionCount"=>12}}, "level"=>"unknown", "hostname"=>"test.example.com", "pipeline_metadata"=>{"collector"=>{"ipaddr4"=>"142.34.151.161", "inputname"=>"fluent-plugin-systemd", "name"=>"fluentd", "received_at"=>"2021-06-28T11:59:32.429777+00:00", "version"=>"1.7.4 1.6.0"}}, "@timestamp"=>"2021-06-28T11:59:32.389462+00:00", "viaq_index_name"=>"app-write", "viaq_msg_id"=>"MDRhNTllOGItOTcwMS00MjZiLTllY2EtYzc4ZDUwMjEwZGRk"}

      Taking record, replacing => with :, piping to jq:

      {
      "docker":

      Unknown macro: { "container_id"}

      ,
      "kubernetes": {
      "container_name": "mongodb-arbiter",
      "namespace_name": "e4589f-dev",
      "pod_name": "dev-mongodb-arbiter-0",
      "container_image": "docker-remote.artifacts.example.com/bitnami/mongodb:4.4.4-debian-10-r0",
      "container_image_id": "docker-remote.artifacts.example.com/bitnami/mongodb@sha256:95abfb776bb4e6ee34f7b5b1c811f978d132136035deacdb7143f798f0343a31",
      "pod_id": "feecd477-6575-4cce-84f4-3561a6bc5cd7",
      "host": "mcs-silver-app-40.dmz",
      "master_url": "https://kubernetes.default.svc",
      "namespace_id": "96c9ee3b-b7e0-4d05-ae6f-06da77b2959c",
      "namespace_labels":

      Unknown macro: { "environment"}

      ,
      "flat_labels": [
      "controller-revision-hash=dev-mongodb-arbiter-75bfbc6bbc",
      "app_kubernetes_io/component=arbiter",
      "app_kubernetes_io/instance=dev",
      "app_kubernetes_io/managed-by=Helm",
      "app_kubernetes_io/name=mongodb",
      "helm_sh/chart=mongodb-10.7.1",
      "statefulset_kubernetes_io/pod-name=dev-mongodb-arbiter-0"
      ]
      },
      "message": {
      "t":

      Unknown macro: { "$date"}

      ,
      "s": "I",
      "c": "NETWORK",
      "id": 22944,
      "ctx": "conn245040",
      "msg": "Connection ended",
      "attr":

      Unknown macro: { "remote"}

      },
      "level": "unknown",
      "hostname": "mcs-silver-app-40.dmz",
      "pipeline_metadata": {
      "collector":

      Unknown macro: { "ipaddr4"}

      },
      "@timestamp": "2021-06-28T11:59:32.389462+00:00",
      "viaq_index_name": "app-write",
      "viaq_msg_id": "MDRhNTllOGItOTcwMS00MjZiLTllY2EtYzc4ZDUwMjEwZGRk"
      }

      Issue is occurring on 4.6 where MERGE_JSON_LOG shouldn't be available and is not enabled. Will upload must-gather in private attachment.

        1. broken.clf.instance.yaml
          3 kB
          Matt Robson
        2. clean_indices.txt
          9 kB
          Eran Raichstein
        3. crio.conf.gz
          5 kB
          Matt Robson
        4. crio.conf-1.gz
          5 kB
          Steven Walter
        5. dev-mongodb-1_e4589f-dev_mongodb-acbe37d40422544e0a1c5206f057e337755002c01af39d5148f88a23b3733c40.log
          2.12 MB
          Eran Raichstein
        6. dev-mongodb-1_e4589f-dev_mongodb-acbe37d40422544e0a1c5206f057e337755002c01af39d5148f88a23b3733c40.log.gz
          1.27 MB
          Steven Walter
        7. dev-mongodb-1_e4589f-dev_mongodb-acbe37d40422544e0a1c5206f057e337755002c01af39d5148f88a23b3733c40(1).log.gz
          1.27 MB
          Matt Robson
        8. ES-mapping.log.gz
          3 kB
          Matt Robson
        9. ES-mapping.log-1.gz
          3 kB
          Steven Walter
        10. FLUENT~1-1.CON
          18 kB
          Eran Raichstein
        11. image-2021-08-22-10-50-16-347.png
          102 kB
          Eran Raichstein
        12. simulation ES mapping.txt
          14 kB
          Eran Raichstein

              jcantril@redhat.com Jeffrey Cantrill
              rhn-support-stwalter Steven Walter
              Qiaoling Tang Qiaoling Tang
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: