15

Mimtproxy docs only talks about how to increase events log verbosity, and on Linux I can't seem to find the mentioned log file either in ~/.mitmproxy nor in the standard /var/log folders.

Is there a way to access the mitmproxy's event log file ?

programmersn
  • 582
  • 1
  • 3
  • 17

2 Answers2

31

The eventlog can be viewed by pressing E (Shift+E) when in mitmproxy.

Sjoerd
  • 74,049
  • 16
  • 131
  • 175
20

Okey finally I just found out the solution myself ...
From the mitmproxy console, type :console.view.eventlog

Turned out to be pretty easy, but I still think that such information should have been provided either on linux manual pages of mitmproxy or on its docs website, by the way.

programmersn
  • 582
  • 1
  • 3
  • 17
  • I have the same question regarding the mitmdump command line tool, which is not interactive, so the answers given here don't seem to apply. The docs indicate you can turn on and set verbosity for mitmdump, but like you, I surprisingly cannot locate any documentation of *where* logs would be found. – M.Bearden Mar 02 '22 at 18:14
  • @M.Bearden try to use ` --save-stream-file log.txt` option. It should save logs to this file when you will stop proxy. – stopanko Mar 26 '22 at 19:08