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

Curator writes error logs to stdout instead of stderr #1312

Open
IngaFeick opened this issue Nov 12, 2018 · 3 comments
Open

Curator writes error logs to stdout instead of stderr #1312

IngaFeick opened this issue Nov 12, 2018 · 3 comments

Comments

@IngaFeick
Copy link

To submit a bug or report an issue

Curator writes both standard and error logs to stdout.

Expected Behavior

I expect error logst to be written to stderr.

Actual Behavior

Error logs are written to stdout.

Steps to Reproduce the Problem

Try to run an action for which there is currently no matching index in the cluster. The config for my test case is here: #1311

Specifications

  • Version: 5.5.4
  • Platform: Linux
  • Subsystem: Debian

Detailed Description

I ran into an issue (see [https://github.com//issues/1311|issue 1311] ) and this was the output on stdout:


2018-11-12 12:52:05,702 INFO Preparing Action ID: 1, "delete_indices" 
2018-11-12 12:52:05,712 INFO Trying Action ID: 1, "delete_indices": delete indices older than 30 days (based on index name) 2018-11-12 12:52:17,250 ERROR Unable to complete action "delete_indices". No actionable items in list: <class 'curator.exceptions.NoIndices'> 
2018-11-12 12:52:41,261 INFO Preparing Action ID: 1, "delete_indices" 
2018-11-12 12:52:41,271 INFO Trying Action ID: 1, "delete_indices": delete indices older than 30 days (based on index name) 2018-11-12 12:52:48,612 ERROR Unable to complete action "delete_indices". No actionable items in list: <class 'curator.exceptions.NoIndices'> 
2018-11-12 12:53:10,402 INFO Preparing Action ID: 1, "delete_indices" 
2018-11-12 12:53:10,412 INFO Trying Action ID: 1, "delete_indices": delete indices older than 30 days (based on index name) 
2018-11-12 12:53:18,500 ERROR Unable to complete action "delete_indices". No actionable items in list: <class 'curator.exceptions.NoIndices'> 
2018-11-12 12:53:42,567 INFO Preparing Action ID: 1, "delete_indices" 
2018-11-12 12:53:42,576 INFO Trying Action ID: 1, "delete_indices": delete indices older than 30 days (based on index name) 
2018-11-12 12:53:49,621 ERROR Unable to complete action "delete_indices". No actionable items in list: <class 'curator.exceptions.NoIndices'> 

There was no output on stderr. I expected the ERROR logs to be on stderr and see only the INFO logs on stdout.

@jeffbehl
Copy link

jeffbehl commented Nov 7, 2024

This bug is especially annoying when run in a kubernetes environment where stderr and stdout are the norm for logging.

@untergeek
Copy link
Member

Possibly related to #1704

I finally have my k8s environment working and running an ECK-based Elastic stack, so I will check this out.

@jeffbehl
Copy link

jeffbehl commented Nov 8, 2024

Excellent. FWIW, #1726 is in the same vein in it also affects when running in k8s. We had the scenario where it was not connecting to the cluster. This error was reported to stdout (this issue) and exited with a 0 - all ok (#1726)

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

No branches or pull requests

3 participants