kbr / fritzconnection

Python-Tool to communicate with the AVM Fritz!Box by the TR-064 protocol and the AHA-HTTP-Interface
MIT License
303 stars 59 forks source link

GetDeviceLog returns incomplete log #119

Open dhellmich1 opened 2 years ago

dhellmich1 commented 2 years ago

Hello,

maybe this is more a question than an issue. I have a FB7590 (7,27), a Repeater 1750E (7.27) and a Powerline Adapters 1220E/1260E (7.21). Within the last weeks after update to 7.27 the FB7590 sometimes reboots and with the reboot the event log is lost. I already started the Powerline optimization again after updating to 7.27 but reboots still remain. Therefore i decided to collect the log on my RASPI and found this excellent module!

When the logs are retrieved by GetDeviceLog the result is incomplete compared to the ui within FritzBox.

fc = FritzConnection(address='192.168.178.1', user='xxx', password='yyy')
logs = fc.call_action('DeviceInfo:1', 'GetDeviceLog');
currentlog = logs['NewDeviceLog'];

I exported the Log (All) of the Fritzbox and marked the entries thar are also returned by GetDeviceLog in green. Fritzbox Logging - Analyse (as PDF).pdf

Thanks in advance! Bye Dirk

joelthill commented 2 years ago

Hi Dirk,

Just saw your issue - I'm suffering from the same symptoms - random lines omitted from the logs. Do you have had any news or made progress on your own in the meantime?

cheers Joel

photis commented 1 year ago

I realise I'm a bit late in the game, but I'd like to add my voice to the above. My impression though is that the log entries that are returned by this function are just the WLAN entries (same as selected through the FRitzbox UI). Is this possible?

hschmidt-dev commented 11 months ago

Hi, I'm also facing this problem. I've now realized that the logs that I get from fc.call_action('DeviceInfo:1', 'GetDeviceLog'); are the same as in the FritzBox web interface when I set the filter to "Internet". So it would be great if the GetDeviceLog method would return "all" logs instead of only "Internet" logs.

mib1185 commented 11 months ago

This is nothing which could by changed by this project, because the data returned of "DeviceInfo1->GetInfo" and "DeviceInfo1->GetDeviceLog" are generated and returned by the device itself. But feel free to report this to AVM, that these apis do not return the whole log, but only limited to the "Internet" logs

kbr commented 11 months ago

I've just checked the AVM documentation (and also the interactive API with FritzOS version 7.56) about these service-calls and @mib1185 is right: there are no options to apply any filter for the provided data. They are returned "as is" and this seems to be the "internet" log subset. No idea why AVM handles it this way.