Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Autodiscover] Handle input-not-finished errors in config reload #20915

Merged
merged 5 commits into from
Sep 2, 2020

Conversation

ChrsMark
Copy link
Member

@ChrsMark ChrsMark commented Sep 2, 2020

What does this PR do?

This PR adds special error handling in config reload flow to handle state errors specially by not logging in ERROR level to avoid confusion in logging.

Current state:

2020-08-26T07:05:05.386Z        ERROR   [autodiscover]  cfgfile/list.go:95      Error creating runner from config: Can only start an input when all related states are finished: {Id: ea745ab688be85a9-native::1308836-2049, Finished: false, Fileinfo: &{628a5ca3a5e5037056ebabc9a016b13d4a6ebb16c44a6216beff387b65ff5c4b-json.log 99 416 {29223485 63734022237 0x608b880} {2049 1308836 1 33184 0 0 0 0 99 4096 8 {1598425436 865214956} {1598425437 29223485} {1598425437 29223485} [0 0 0]}}, Source: /var/lib/docker/containers/628a5ca3a5e5037056ebabc9a016b13d4a6ebb16c44a6216beff387b65ff5c4b/628a5ca3a5e5037056ebabc9a016b13d4a6ebb16c44a6216beff387b65ff5c4b-json.log, Offset: 42864, Timestamp: 2020-08-26 07:05:03.816329242 +0000 UTC m=+187.623544858, TTL: -1ns, Type: container, Meta: map[stream:stdout], FileStateOS: 1308836-2049}

Patch:

2020-09-02T08:19:12.330Z	DEBUG	[autodiscover]	cfgfile/list.go:97	Error creating runner from config: Can only start an input when all related states are finished: {Id: native::5784858-64769, Finished: false, Fileinfo: &{mytarget2_default_test-63b37f8e982045d4bdac75d302e687e788e979ffeb857b5c1e754f019275d6e5.log 15108 416 {330272804 63734631529 0x36610e0} {64769 5784858 1 33184 0 0 0 0 15108 4096 32 {1599034103 795344632} {1599034729 330272804} {1599034729 330272804} [0 0 0]}}, Source: /var/log/containers/mytarget2_default_test-63b37f8e982045d4bdac75d302e687e788e979ffeb857b5c1e754f019275d6e5.log, Offset: 15465, Timestamp: 2020-09-02 08:19:05.456366051 +0000 UTC m=+12.261964777, TTL: -1ns, Type: container, Meta: map[], FileStateOS: 5784858-64769}

Why is it important?

To avoid confusion in logging because of a non actual ERROR is logged as an ERROR. We need to log with lower severity this kind of errors.

How to test this PR locally

Using testing steps from #20305.

Related issues

Signed-off-by: chrismark <chrismarkou92@gmail.com>
@ChrsMark ChrsMark added bug needs_backport PR is waiting to be backported to other branches. autodiscovery v7.10.0 labels Sep 2, 2020
@ChrsMark ChrsMark requested a review from jsoriano September 2, 2020 08:27
@ChrsMark ChrsMark self-assigned this Sep 2, 2020
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Sep 2, 2020
Signed-off-by: chrismark <chrismarkou92@gmail.com>
@ChrsMark ChrsMark added [zube]: In Review review Team:Platforms Label for the Integrations - Platforms team labels Sep 2, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-platforms (Team:Platforms)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Sep 2, 2020
Signed-off-by: chrismark <chrismarkou92@gmail.com>
@elasticmachine
Copy link
Collaborator

elasticmachine commented Sep 2, 2020

💔 Build Failed

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #20915 updated]

  • Start Time: 2020-09-02T12:36:34.277+0000

  • Duration: 71 min 49 sec

Test stats 🧪

Test Results
Failed 0
Passed 17605
Skipped 1817
Total 19422

Steps errors

Expand to view the steps failures

  • Name: Mage build test
    • Description: mage build test

    • Duration: 5 min 4 sec

    • Start Time: 2020-09-02T13:02:06.583+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-09-02T13:46:41.923Z] + tar -xpf source.tgz
[2020-09-02T13:46:54.512Z] + rm source.tgz
[2020-09-02T13:46:54.526Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats
[2020-09-02T13:46:54.557Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Lint
[2020-09-02T13:46:54.678Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Elastic-Agent-x-pack
[2020-09-02T13:46:54.775Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Winlogbeat-oss
[2020-09-02T13:46:54.878Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Auditbeat-crosscompile
[2020-09-02T13:46:54.991Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/dockerlogbeat
[2020-09-02T13:46:55.091Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Journalbeat
[2020-09-02T13:46:55.190Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Generators-Metricbeat-Linux
[2020-09-02T13:46:55.304Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Functionbeat-x-pack
[2020-09-02T13:46:55.402Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Libbeat-oss
[2020-09-02T13:46:55.490Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Packetbeat-Linux
[2020-09-02T13:46:55.582Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Metricbeat-OSS-Unit-tests
[2020-09-02T13:46:55.678Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Elastic-Agent-x-pack-Windows
[2020-09-02T13:46:55.774Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Heartbeat-oss
[2020-09-02T13:46:55.876Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Elastic-Agent-Mac-OS-X
[2020-09-02T13:46:55.985Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Auditbeat-oss-Windows
[2020-09-02T13:46:56.087Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Heartbeat-Windows
[2020-09-02T13:46:56.194Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Auditbeat-x-pack
[2020-09-02T13:46:56.300Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Winlogbeat-Windows-x-pack
[2020-09-02T13:46:56.402Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Auditbeat-x-pack-Windows
[2020-09-02T13:46:56.518Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Winlogbeat-Windows
[2020-09-02T13:46:56.626Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Auditbeat-oss-Linux
[2020-09-02T13:46:56.732Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Filebeat-x-pack-Mac-OS-X
[2020-09-02T13:46:56.857Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Heartbeat-Mac-OS-X
[2020-09-02T13:46:56.991Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Filebeat-x-pack-Windows
[2020-09-02T13:46:57.110Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Metricbeat-crosscompile
[2020-09-02T13:46:57.214Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Libbeat-x-pack
[2020-09-02T13:46:57.375Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Functionbeat-Windows
[2020-09-02T13:46:57.511Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Auditbeat-x-pack-Mac-OS-X
[2020-09-02T13:46:57.620Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Packetbeat-Windows
[2020-09-02T13:46:57.731Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Filebeat-Mac-OS-X
[2020-09-02T13:46:57.850Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Filebeat-Windows
[2020-09-02T13:46:57.952Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Metricbeat-x-pack-Windows
[2020-09-02T13:46:58.046Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Metricbeat-Windows
[2020-09-02T13:46:58.165Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Functionbeat-Mac-OS-X-x-pack
[2020-09-02T13:46:58.260Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Metricbeat-x-pack-Mac-OS-X
[2020-09-02T13:46:58.362Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Packetbeat-Mac-OS-X
[2020-09-02T13:46:58.455Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Auditbeat-oss-Mac-OS-X
[2020-09-02T13:46:58.546Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Metricbeat-Mac-OS-X
[2020-09-02T13:46:58.645Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Generators-Metricbeat-Mac-OS-X
[2020-09-02T13:46:58.735Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Generators-Beat-Mac-OS-X
[2020-09-02T13:46:58.821Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Generators-Beat-Linux
[2020-09-02T13:46:58.911Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Filebeat-x-pack
[2020-09-02T13:46:59.002Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Filebeat-oss
[2020-09-02T13:46:59.107Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests
[2020-09-02T13:46:59.210Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Metricbeat-OSS-Python-Integration-tests
[2020-09-02T13:46:59.311Z] Running in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Metricbeat-x-pack
[2020-09-02T13:46:59.731Z] + cat
[2020-09-02T13:46:59.731Z] + /usr/local/bin/runbld ./runbld-script --job-name elastic+beats+pull-request
[2020-09-02T13:46:59.731Z] Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
[2020-09-02T13:47:06.323Z] runbld>>> runbld started
[2020-09-02T13:47:06.323Z] runbld>>> 1.6.12/f45d832f2ba0aa2722ab4ec1fda8ad140f027f8b
[2020-09-02T13:47:08.874Z] runbld>>> The following profiles matched the job 'elastic+beats+pull-request' in order of occurrence in the config (last value wins).
[2020-09-02T13:47:08.874Z] runbld>>> Matches in the system config:
[2020-09-02T13:47:08.874Z] runbld>>> - Matched ^elastic\+beats
[2020-09-02T13:47:08.874Z] runbld>>> - Matched ^elastic\+beats\+pull-request
[2020-09-02T13:47:09.815Z] runbld>>> Debug logging enabled.
[2020-09-02T13:47:09.815Z] runbld>>> Storing result
[2020-09-02T13:47:10.078Z] runbld>>> Store result: created {:total 2, :successful 2, :failed 0} 1
[2020-09-02T13:47:10.078Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20200902134709-4B4A6AE7
[2020-09-02T13:47:10.078Z] runbld>>> Adding system facts.
[2020-09-02T13:47:11.027Z] runbld>>> Adding vcs info for the latest commit:  d1c34a7b718dab8074f44f850ac7006f871d1c4b
[2020-09-02T13:47:11.027Z] runbld>>> >>>>>>>>>>>> SCRIPT EXECUTION BEGIN >>>>>>>>>>>>
[2020-09-02T13:47:11.027Z] runbld>>> Adding /usr/lib/jvm/java-8-openjdk-amd64/bin to the path.
[2020-09-02T13:47:11.288Z] Processing JUnit reports with runbld...
[2020-09-02T13:47:11.288Z] + echo 'Processing JUnit reports with runbld...'
[2020-09-02T13:47:11.551Z] runbld>>> <<<<<<<<<<<< SCRIPT EXECUTION END <<<<<<<<<<<<
[2020-09-02T13:47:11.551Z] runbld>>> DURATION: 21ms
[2020-09-02T13:47:11.551Z] runbld>>> STDOUT: 40 bytes
[2020-09-02T13:47:11.551Z] runbld>>> STDERR: 49 bytes
[2020-09-02T13:47:11.551Z] runbld>>> WRAPPED PROCESS: SUCCESS (0)
[2020-09-02T13:47:11.551Z] runbld>>> Searching for build metadata in /var/lib/jenkins/workspace/Beats_beats_PR-20915
[2020-09-02T13:47:12.492Z] runbld>>> Storing build metadata: 
[2020-09-02T13:47:12.492Z] runbld>>> Adding test report.
[2020-09-02T13:47:12.492Z] runbld>>> Searching for junit test output files with the pattern: TEST-.*\.xml$ in: /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats
[2020-09-02T13:47:13.436Z] runbld>>> Found 138 test output files
[2020-09-02T13:47:15.360Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-iis.xml
[2020-09-02T13:47:15.360Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-openmetrics.xml
[2020-09-02T13:47:15.360Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-activemq.xml
[2020-09-02T13:47:15.621Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-istio.xml
[2020-09-02T13:47:15.621Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Metricbeat-x-pack/x-pack/metricbeat/build/TEST-go-integration-tomcat.xml
[2020-09-02T13:47:16.192Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests/metricbeat/build/TEST-go-integration-graphite.xml
[2020-09-02T13:47:16.192Z] runbld>>> No testsuite node found in /var/lib/jenkins/workspace/Beats_beats_PR-20915/src/github.com/elastic/beats/Metricbeat-OSS-Go-Integration-tests/metricbeat/build/TEST-go-integration-windows.xml
[2020-09-02T13:47:16.453Z] runbld>>> Test output logs contained: Errors: 0 Failures: 0 Tests: 19269 Skipped: 1557
[2020-09-02T13:47:16.713Z] runbld>>> Storing result
[2020-09-02T13:47:16.713Z] runbld>>> FAILURES: 0
[2020-09-02T13:47:16.974Z] runbld>>> Store result: updated {:total 2, :successful 2, :failed 0} 2
[2020-09-02T13:47:16.974Z] runbld>>> BUILD: https://c150076387b5421f9154dfbf536e5c60.us-west1.gcp.cloud.es.io:9243/build-1597739501209/t/20200902134709-4B4A6AE7
[2020-09-02T13:47:16.974Z] runbld>>> Email notification disabled by environment variable.
[2020-09-02T13:47:16.974Z] runbld>>> Slack notification disabled by environment variable.
[2020-09-02T13:47:22.728Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-20915
[2020-09-02T13:47:22.971Z] [INFO] getVaultSecret: Getting secrets
[2020-09-02T13:47:23.043Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-09-02T13:47:23.880Z] + chmod 755 generate-build-data.sh
[2020-09-02T13:47:23.880Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20915/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20915/runs/4 FAILURE 4249342
[2020-09-02T13:47:23.880Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20915/runs/4/steps/?limit=10000 -o steps-info.json
[2020-09-02T13:47:26.364Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20915/runs/4/tests/?status=FAILED -o tests-errors.json
[2020-09-02T13:47:27.275Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-20915/runs/4/log/ -o pipeline-log.txt

Signed-off-by: chrismark <chrismarkou92@gmail.com>
Copy link
Member

@jsoriano jsoriano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for fixing this. Only a question that can be ignored if you have good reasons 🙂

libbeat/common/errors.go Show resolved Hide resolved
@ChrsMark ChrsMark merged commit 35e6b60 into elastic:master Sep 2, 2020
ChrsMark added a commit to ChrsMark/beats that referenced this pull request Sep 2, 2020
@ChrsMark ChrsMark removed the needs_backport PR is waiting to be backported to other branches. label Sep 2, 2020
ChrsMark added a commit that referenced this pull request Sep 3, 2020
v1v added a commit to v1v/beats that referenced this pull request Sep 3, 2020
…ne-2.0

* upstream/master:
  [Metricbeat][test] Disable ec2 flaky test (elastic#20959)
  Check if tracer is active before starting a transaction (elastic#20852)
  [Elastic Agent] Add support for variable replacement from providers (elastic#20839)
  Only request wildcard expansion for hidden indices if supported (elastic#20938)
  [Ingest Manager] New agent structure (symlinks) (elastic#20400)
  [Ingest Manager] Print a message confirming shutdown (elastic#20948)
  Skip flaky test on unix input (elastic#20942)
  [Ingest Manager] Align introspect-inspect naming in code (elastic#20952)
  [Filebeat][zeek] Map new x509 fields for ssl module (elastic#20927)
  [CI] fix regression with variable name (elastic#20930)
  [Autodiscover] Handle input-not-finished errors in config reload (elastic#20915)
  [Ingest Manager] Remove Success from fleet contract (elastic#20449)
@thernstig
Copy link

@ChrsMark I am confused by this change. I just ended up with this problem:

2020-09-24T13:04:39.398Z        ERROR   [autodiscover]  cfgfile/list.go:96      Error creating runner from config: Can only start an input when all related states are finished: {Id:2069814-64771 Finished:false Fileinfo:0xc42018c340 Source:/var/log/containers/serverr-57cd7746ff-pzzlg_default_server-e48194c34dcac07db908e93c44ae34d5130a28ae79766b7645ff3686ff66ef4d.log Offset:12941 Timestamp:2020-09-24 13:04:38.095112478 +0000 UTC m=+1743.843569158 TTL:-1ns Type:log Meta:map[] FileStateOS:2069814-64771}

I have no idea what this means, but at least I glad that as a user I could run kubectl logs <name> to check the logs of Filebeat, to further google the error.

  1. Does this change now hide this error?
  2. I still have no idea why this error happens, and googling it the info is sparse.

@ChrsMark
Copy link
Member Author

@ChrsMark I am confused by this change. I just ended up with this problem:

2020-09-24T13:04:39.398Z        ERROR   [autodiscover]  cfgfile/list.go:96      Error creating runner from config: Can only start an input when all related states are finished: {Id:2069814-64771 Finished:false Fileinfo:0xc42018c340 Source:/var/log/containers/serverr-57cd7746ff-pzzlg_default_server-e48194c34dcac07db908e93c44ae34d5130a28ae79766b7645ff3686ff66ef4d.log Offset:12941 Timestamp:2020-09-24 13:04:38.095112478 +0000 UTC m=+1743.843569158 TTL:-1ns Type:log Meta:map[] FileStateOS:2069814-64771}

I have no idea what this means, but at least I glad that as a user I could run kubectl logs <name> to check the logs of Filebeat, to further google the error.

  1. Does this change now hide this error?
  2. I still have no idea why this error happens, and googling it the info is sparse.

Hi!

First of all this "error" is sth that has to do with the state of files that are being harvested. It should go away once the harvesting is completed and Autodiscover will be able to start the input again. So imagine that this error could be ignored. This is the reason we turned this error from ERROR level to DEBUG level. This change will be landed with 7.10 release.

@thernstig
Copy link

@ChrsMark Hi! Ok, I must have misunderstood this thread #11834. There it seems to state that the only way for the logs to be picked up is to restart Filebeat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve logging on autodiscover recoverable errors
4 participants