Comments (6)
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.
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.
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.
@1tft can you please check the Windows event-log for any errors!?
from telegraf.
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.
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)
- Telegraf not writing to InfluxDB if buffer for CrateDB fills up to metric_batch_size HOT 2
- inputs.mysql can not handle custom TLS configurations HOT 1
- Telegraf Docker Container is loading config indefinitely HOT 7
- gocritic->badSyncOnceFunc - Detects bad usage of sync.OnceFunc. Should we enable it? HOT 1
- gocritic->sloppyLen - Detects usage of `len` when result is obvious or doesnโt make sense. Should we enable it? HOT 1
- Starlark integert type issue with Netflow/IPFIX packets HOT 12
- gNMI plugin error HOT 3
- New linter: `copyloopvar`. Should we enable it? HOT 8
- New linter: `intrange`. Should we enable it? HOT 4
- New linter: `inamedparam`. Should we enable it? HOT 2
- test(inputs.disk): Test for issue 10297 fails on cloud runner HOT 4
- New linter: `mirror`. Should we enable it? HOT 1
- memory leak HOT 3
- Add back constants in the logging package HOT 2
- NSEL (Firewall netflow) remapping from NetFlow v9 to NSEL HOT 3
- Metrics aren't displayed (outputs.prometheus_client) HOT 3
- TOML parser issue HOT 1
- [inputs. kafka_consumer] Multiple Telegraf instances in the same group but only one is consuming HOT 5
- OAuth2 Secret store does not work HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from telegraf.