Request for comments/help: Replacing data from log db #241
Closed
mountaindude
started this conversation in
Ideas
Replies: 2 comments 3 replies
-
Hi Göran, |
Beta Was this translation helpful? Give feedback.
3 replies
-
The above info has been used in recent (8.x) versions. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background
As of May 2021, the centralised log db is no longer installed as part of Qlik Sense Enterprise on Windows (QSEoW).
See this post in the Qlik forums for more info and discussion.
Butler SOS has for a long time extracted data from log db and made it available in Grafana dashboards, in InfluxDB and as MQTT messages.
It has turned out to be very useful to have operational metrics (number of user sessions, CPU load etc) side-by-side with warnings and errors taken from log db.
It simply makes it much easier to understand what is causing the problems, poor performance or whatever might be causing issues.
How can Butler SOS deal with this?
The first good news is that most info - maybe even everything - found in log db is also available in the QSEoW log files.
If we can detect and forward the relevant data in the log files to Butler SOS we will have the same log info as what's available in log db.
The second piece of good news is that we can do this.
If we are to stay within the QSEoW ecosystem the best option is to create log4net log appenders that forward the log events we're interested in to Butler SOS. This has been thoroughly tested and works really well, with close to real time performance (usually <5 seconds until events show up in Butler SOS).
This means that log events will show up in Butler SOS way more quickly than with the previous solution (which relied on polling log db every few minutes). We will thus get closer to real-time access to log events as they happen.
Any challenges?
Actually, yes.
The log files contain LOTS of information. How can we know/decide which is relevant to bring into Butler SOS?
A reasonable starting point is to look at what's currently available in log db and make that data available in Butler SOS, with log files as the source.
Additional log events can be added later on.
You can help!
There's no public documentation on exactly what data goes into log db.
But maybe we can crowd source the important parts of this...
What log events should be available in Butler SOS?
Do you have thoughts on what log events or metrics you'd like to see in a tool like Butler SOS?
Feel free to share here in the forums!
🤓 Are you a techie? Share what's in your log db!
Do you have the tech skills to query the Postgres log db directly?
If so it would be awesome if you can run the query below and report the results back here or directly to goran -at- ptarmiganlabs -dot- com (if you feel the info should not got onto GitHub).
It's nothing sensitive really - just what errors and warnings exist in log db for the past 3 weeks, plus what parts of Sense created those warnings/errors. With this info it's then possible to bring as much of that info into Butler SOS from the log files.
The query looks like this:
The output can look like this:
Beta Was this translation helpful? Give feedback.
All reactions