yboetz / pyznap

ZFS snapshot tool written in python
GNU General Public License v3.0
197 stars 35 forks source link

Option to have the pyznap log output in json #61

Closed maireanu closed 4 years ago

maireanu commented 4 years ago

If it possible to have the output of the pyznap in json format

yboetz commented 4 years ago

What kind of output would you want in json format? I don't think that is something I'll implement in the near future, lots of other features I would like to work on and not that much time...

maireanu commented 4 years ago

it will be nice to have the output of the logging in a structured format in order to be easily parsed and send the logs to a monitoring system.

For example /path/to/pyznap snap >> /var/log/pyznap.log 2>&1 /var/log/pyznap.log the output in this file to be in json

yboetz commented 4 years ago

You'll have to parse the text log for the moment, I don't plan to change the log output in the near future.

maireanu commented 4 years ago

Not neccesary anymore