From cc1ea7ef36868c0708741392c99fcd2f2c395131 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Wed, 12 Jun 2019 19:27:37 +0200 Subject: monitor: Accept -j flag Make 'nft -j monitor' equal to 'nft monitor json' and change documentation to use only the first variant since that is more intuitive and also consistent with other commands. While being at it, drop references to XML from monitor section - it was never supported. Signed-off-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- doc/nft.txt | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'doc/nft.txt') diff --git a/doc/nft.txt b/doc/nft.txt index 4fca5c91..3f1074b8 100644 --- a/doc/nft.txt +++ b/doc/nft.txt @@ -713,7 +713,7 @@ MONITOR ~~~~~~~~ The monitor command allows you to listen to Netlink events produced by the nf_tables subsystem, related to creation and deletion of objects. When they -occur, nft will print to stdout the monitored events in either XML, JSON or +occur, nft will print to stdout the monitored events in either JSON or native nft format. + To filter events related to a concrete object, use one of the keywords 'tables', 'chains', 'sets', 'rules', 'elements', 'ruleset'. + @@ -727,14 +727,9 @@ Hit ^C to finish the monitor operation. % nft monitor -------------------------------------------------- -.Listen to added tables, report in XML format --------------------------------------------- -% nft monitor new tables xml --------------------------------------------- - .Listen to deleted rules, report in JSON format ----------------------------------------------- -% nft monitor destroy rules json +% nft -j monitor destroy rules ----------------------------------------------- .Listen to both new and destroyed chains, in native nft format -- cgit v1.2.3