Giter Club home page Giter Club logo

Comments (6)

1tft avatar 1tft commented on July 26, 2024 1

OK, thank you for that information! So we can live very good with this logging "anomaly" and with the prospect of refactoring logging in the future.

from telegraf.

powersj avatar powersj commented on July 26, 2024

Hi,

does not produce correct error message

To clarify, it isn't that it is the wrong error message, it is that you are not seeing the final error message when running Telegraf as a service on windows and logging to a file?

from telegraf.

1tft avatar 1tft commented on July 26, 2024

Yes thats exactly what I mean: You see this correct error message only when you start Telegraf manually.
When Telegraf is started as service no error message is produced (inside logfile).

Scenario: Statefile get currupted during Telegraf shutdown/crash and server reboots. Telegraf tries to start as service with corrupt statefile but cant. It does not log this usefull log message. You have to manually connect to server to start Telegraf on command line to see this eror message.

from telegraf.

srebhan avatar srebhan commented on July 26, 2024

@1tft can you please check the Windows event-log for any errors!?

from telegraf.

1tft avatar 1tft commented on July 26, 2024

Yes, Windows event-log includes this error: "[telegraf] Error running agent: unmarshalling states failed: invalid character 'Z' looking for beginning of value"
Source: telegraf
Event ID: 100

Regarding linux I have to correct my inital statement: I can see log message "[telegraf] Error running agent: unmarshalling states failed: invalid character 'Z' looking for beginning of value" inside Telegraf log and not inside journal etc..

So we have to "live" with this "inconsistency"?

from telegraf.

srebhan avatar srebhan commented on July 26, 2024

The issue is the "early" logging in Telegraf currently isn't consistent over platforms as the timing to switch outputs differs. I'm currently working on revamping the logging and might be able to provide a more consistent way of "early logging"...

At least the error message is not dropped on the floor, that's good news for me. ;-)

from telegraf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.