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

Add "event" data operations like tailing files, subscribe ioBroker Log messages or States?! #5

Open
Apollon77 opened this issue Apr 4, 2018 · 3 comments

Comments

@Apollon77
Copy link
Member

Hey,

because of https://forum.iobroker.net/viewtopic.php?f=21&t=13165 I was (again) thinking about writing an "log-parser" adapter that subscribes to the ioBroker Logs (adapter can do that) and allow regex-or-whatever-partsing.

Then I tought that it would be great enhancements for parser or systeminfo adapter.

What do you think?
And while thinking about it I came up also with the idea to be able to monitor logfiles on disk and "tail" them or also subscribe to states in ioBroker and be able to parse values.

Log subscription in ioBroker:
see https://github.com/ioBroker/ioBroker.js-controller/blob/master/doc/LOGGING.md

When I understand the code correctly the object delivered "on('log')" should look like:
{message: msg, severity: level, from: that.namespace, ts: (new Date()).getTime()}

@frankjoke
Copy link
Collaborator

Hi Ingo! Sorry for late answer, was on Easter vacation :)
The idea is good, will try to read about log subscription and how it could then be integrated in the next days after I catch up with actual work.

@Apollon77
Copy link
Member Author

Apollon77 commented Apr 9, 2018

cool :-) No stress. Log subscription is really streight forward

@Mic-M
Copy link

Mic-M commented Jul 20, 2018

Hi,
This would be indeed a great feature! I have scripted a code to retrieve the log data and write it into states regularly and to generate JSON for visualization. However, would also prefer to have it within this adapter. Link to the script FYI.

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