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

[Vector] Default log level debug makes it hard to find useful error/failure messages.

XMLWordPrintable

      The default log level of vector is debug, it's hard to find useful information when debugging issues, could we set default log level to a higher level?

              - env:
                - name: LOG
                  value: debug
      Logs example:
      Jan 25 06:24:13.744 DEBUG http: hyper::client::pool: pooling idle connection for ("https", elasticsearch-server.d4cm5.svc:9200)
      Jan 25 06:24:13.744 DEBUG http: vector::internal_events::http_client: HTTP response. status=200 OK version=HTTP/1.1 headers={"x-elastic-product": "Elasticsearch", "warning": "299 Elasticsearch-7.16.1-5b38441b16b1ebb16a27c107a4c3865776e20c53 \"[types removal] Specifying types in bulk requests is deprecated.\"", "content-type": "application/json; charset=UTF-8", "content-length": "1210"} body=[1210 bytes]
      Jan 25 06:24:13.756 DEBUG hyper::proto::h1::io: parsed 4 headers
      Jan 25 06:24:13.756 DEBUG hyper::proto::h1::conn: incoming body is content-length (1232 bytes)
      Jan 25 06:24:13.756 DEBUG hyper::proto::h1::conn: incoming body completed
      Jan 25 06:24:13.756 DEBUG http: hyper::client::pool: pooling idle connection for ("https", elasticsearch.openshift-logging.svc:9200)
      Jan 25 06:24:13.756 DEBUG http: vector::internal_events::http_client: HTTP response. status=200 OK version=HTTP/1.1 headers={"content-length": "1232", "content-type": "application/json; charset=UTF-8", "gap-upstream-address": "localhost:9200", "date": "Tue, 25 Jan 2022 06:24:13 GMT"} body=[1232 bytes]
      Jan 25 06:24:14.099 DEBUG source{component_kind="source" component_name=openshift_audit_logs component_type=file}:file_server: file_source::file_server: event_throughput=0.000/sec bytes_throughput=0.000/sec ratios={"discovery": 0.000016357839, "other": 0.000028245786, "sending": 0.000003497826, "sleeping": 0.99995196}
      Jan 25 06:24:14.099 DEBUG source{component_kind="source" component_name=k8s_audit_logs component_type=file}:file_server: file_source::file_server: event_throughput=0.000/sec bytes_throughput=0.000/sec ratios={"discovery": 0.000021826983, "other": 0.000026297968, "sending": 0.0000014126479, "sleeping": 0.9999504}
      Jan 25 06:24:14.262 DEBUG source{component_kind="source" component_name=host_audit_logs component_type=file}:file_server: file_source::file_server: event_throughput=0.000/sec bytes_throughput=0.000/sec ratios={"discovery": 0.00018537273, "other": 0.000028558332, "reading": 0.0000004259179, "sending": 0.00000437749, "sleeping": 0.9997813}
      Jan 25 06:24:14.360 DEBUG vector::internal_events::file::source: Files checkpointed. count=0 duration_ms=1
      Jan 25 06:24:14.361 DEBUG vector::internal_events::file::source: Files checkpointed. count=1 duration_ms=1
      Jan 25 06:24:14.372 DEBUG vector::internal_events::file::source: Files checkpointed. count=0 duration_ms=1
      Jan 25 06:24:15.363 DEBUG vector::internal_events::file::source: Files checkpointed. count=0 duration_ms=1
      Jan 25 06:24:15.364 DEBUG vector::internal_events::file::source: Files checkpointed. count=1 duration_ms=1
      Jan 25 06:24:15.375 DEBUG vector::internal_events::file::source: Files checkpointed. count=0 duration_ms=1 

              Unassigned Unassigned
              qitang@redhat.com Qiaoling Tang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: