Does anyone know the correct POST data format for filtering MT logs? I've come this far: when I send a POST request to /rest/log/print with the JSON data
Code: Select all
{"follow":{"where":{"topics":"ipsec"}}}
{"follow":{"where":{"topics":"ipsec"}}}
There are a few catches here.{"follow":{"where":{"topics":"ipsec"}}}
USER=admin ROUTER=192.168.88.1; curl -l -u $USER -X POST http://$ROUTER/rest/log/print -H "Content-Type: application/json" --data '{ "follow": true, ".query": ["topics=\"ipsec;info\""]}' --trace-ascii /dev/stdout
{ ".query": ["topics=\"ipsec;info\""]}