Note: This KB, KB19490 [juniper.net], is deprecated and scheduled to be archived. A newer KB with up-to-date and more relevant information is available - KB32479 - [SRX] Example - Configure on-box reporting in J-Web [juniper.net]. Please refer to KB32479 [juniper.net] for the latest information.
This article provides information on how to enable and view traffic logs in the GUI/J-Web on SRX devices.
It was reported by many customers that traffic logging occurs in the syslog servers; but not in the J-Web/GUI. Even if policy logging is configured in the J-Web, it was not getting logged. This is applicable to all the Junos versions. Policy Logs for tr-untr :
To enable traffic logging in J-Web, perform the following procedure:
root@srx#set security log mode event root@srx#commit
file policy_session { user info; match RT_FLOW; archive size 5120000 world-readable; structured-data; }
file policy_session { any any; // This can be any of [any/any, any/info, user/any, user/info] match RT_FLOW; // Need exact the same match string for system in searching logs for policy archive world-readable; // Requried structured-data; // Preferred for fast searching when using filters }
2020-03-25: Article reviewed for accuracy; no changes required.