You need to run the log command from inside the openhab Kara Console and not the normal command prompt or Linux terminal. See here you probably need the ssh command from this link to open it up.
Also please include what openhab version you have to know what bug fixes as re in your build as some onvif issues were fixed recently. Upgrade if not on the latest stable build.