Best practice to collect logs

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
vojtishek
Normal user
Posts: 70
Joined: 12 Jan 2017, 08:00

Best practice to collect logs

#1 Post by vojtishek » 23 May 2017, 17:56

Hi all, could you please share what are the best practices to collect logs from espeasy. As esp has limited amount of ram then there Is no ability how to get log data after crash.
Thanks for idea
Vojta

Justblair
Normal user
Posts: 63
Joined: 08 Aug 2016, 23:42

Re: Best practice to collect logs

#2 Post by Justblair » 24 May 2017, 09:38

If you want to collect logs over a period of time why not set up a syslog server. I have one running as a service on my Media PC (which also hosts openhab2 and mosquitto)

Through the advanced settings on ESPeasy you can then point the ESPeasy device to the syslog server ip address and set the level of loggin that you require.

I used free syslog software, though I cant right now remember the name of it.

vojtishek
Normal user
Posts: 70
Joined: 12 Jan 2017, 08:00

Re: Best practice to collect logs

#3 Post by vojtishek » 24 May 2017, 10:00

Justblair wrote: 24 May 2017, 09:38 If you want to collect logs over a period of time why not set up a syslog server. I have one running as a service on my Media PC (which also hosts openhab2 and mosquitto)

Through the advanced settings on ESPeasy you can then point the ESPeasy device to the syslog server ip address and set the level of loggin that you require.

I used free syslog software, though I cant right now remember the name of it.
Just wondering If there is any option to run syslog on raspberry pi along with domoticz server. That would be best solution for me.

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Best practice to collect logs

#4 Post by Shardan » 24 May 2017, 14:18

vojtishek wrote: 24 May 2017, 10:00 Just wondering If there is any option to run syslog on raspberry pi along with domoticz server. That would be best solution for me.
A Respberry usually uses Raspbian, a Debian variant.
There are some SysLog servers availlable with raspbian/Debian, for example "syslog-ng".

As long as there is no syslog server already running, just do a

Code: Select all

sudo apt-get update
sudo apt-get install syslog-ng
to get the server installed
it might need some config, i can't check here at the office.

Regards
Shardan
Regards
Shardan

vojtishek
Normal user
Posts: 70
Joined: 12 Jan 2017, 08:00

Re: Best practice to collect logs

#5 Post by vojtishek » 24 May 2017, 21:52

Configured, conf file adjusted. Working like a charm right now.
Thanks Shardan a lot

If someone else needed to help with that, then please let me know, I will guide you.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 147 guests