objective-see / DNSMonitor

A DNS Monitor, leveraging Apple's NEDNSProxyProvider/Network Extension Framework
GNU General Public License v3.0
162 stars 19 forks source link

JSON output #4

Closed jkennedyvz closed 5 months ago

jkennedyvz commented 1 year ago

The current output using -json is a bit clunky for inspecting logs as the application is running, and on restarts.

e.g. sudo /Applications/DNSMonitor.app/Contents/MacOS/DNSMonitor -json >> dns.log creates a file starting with [ and it doesn't terminate with ] until the process finishes.

Could the output be changed to json lines similar to https://github.com/objective-see/ProcessMonitor and https://github.com/objective-see/FileMonitor ? This would allow users to pipe the file to jq, or other utilities while still logging traffic.