Log Files

I am trying to pull the log files on the Vera, but I am looking specifically for the log file that holds the notifications that you would normally find under “account → my alerts”. Any ideas where this is located on the Vera if i user SSH? I want to download the log to then run a report later and find out who many times a specific user put their code in the front door.

I might be wrong here but it is my understanding that the notification logs are not stored on the Vera unit but on the Mios servers at MCV. I deduce this from posts I remember to have read but mostly also since you need to log in to your Mios account to see the notifications. There would be no need for a log in if the notifications were stored locally.

MJ

The Vera log file is in:
/tmp/log/cmh/LuaUPNP.log

You can view it with:
http://YourVeraIP/cgi-bin/cmh/log.sh?Device=LuaUPnP

The actual file is rotated … (zipped and sent to MCV Server) when it gets large.
There are ways to keep these local … they are still zipped.
Depending on how much information is in your log file … this can happen a couple of times a day.

You will have to scan the log file to find your events … it’s not user friendly. It also does not have all the information that is in the sent notification.
I would suggest you monitor your log file while someone generates an event and see if the local log file will be useful.

I doubt it.

If you have an Android phone … Use Vera Alerts. It will record all of the alerts on your phone. You can tell it to keep the last N events for each event. So you can see the last N times someone opened your door.

Sounds good…thanks for the quick information…guess I’m going to have to try and create a reporting system to create a searchable notification report…

Sent from my iPhone using Tapatalk - now Free

I came home today and noticed Vera UI doesn’t come up. Tried to SSH but connection was rejected. I ping the device and I got reply.
I had no choice other than unplug Vera.

I tried to look to Vera log but I realized the log file is almost empty and was created just when I plugged in the vera. My log file is on 32GB USB

1-Does Vera wipe out the log on power reset?
2-How long Vera keeps a log file?

Thanks.

[quote=“RichardTSchaefer, post:3, topic:177016”]The actual file is rotated … (zipped and sent to MCV Server) when it gets large.
There are ways to keep these local … they are still zipped.[/quote]

How can keep a local copy?

Thanks

I believe if you uncheck Archive old logs on server on the tab SETUP, Logs it will leave them on the local filesystem.

Thanks, I did that. Lets see what happens tomorrow.

Two more questions please, if you don’t mind.

1- Looks like you tried to modify Rotate_Logs.sh to increase rotation time, but you were not successful, is that right?

2- I need to create my own log for all my scripts. I cannot rely on Vera’s rotating log file. I thought I open a file on Vera startup and write a MyLog() kind of function and keep that global and use it. What do you think?

Thanks

It may be that the EventWatcher log is what you need. Basic instructions for installing are here: [s]http://forum.micasaverde.com/index.php/topic,18749.0.html[/s], but you should also update the Lua file with the latest from here: http://forum.micasaverde.com/index.php/topic,16984.msg139085.html#msg139085
It really depends how long you want the log to last.

— edit, sorry, wrong URL. See the start of the other thread for install instructions. —

Looks like you tried to modify Rotate_Logs.sh to increase rotation time, but you were not successful, is that right?
That is correct. Every time I made a change to [i][Rotate_Logs.sh/i], log rotation stopped completely. I still have not found out why this happens.
I need to create my own log for all my scripts. I cannot rely on Vera's rotating log file. I thought I open a file on Vera startup and write a MyLog() kind of function and keep that global and use it. What do you think?
This should by straightforward to do if [i]EventWatcher[/i] does not provide what you want.

If you create your file in the www folder (e.g. www.mylog.txt), you can check it through your browser (/mylog.txt). You will need to provide your own log rotation mechanism to avoid consuming too much memory.