Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[SRX] How to view web filtering logs in in a syslog file



Article ID: KB28213 KB Last Updated: 25 Oct 2013Version: 2.0
The following configuration is needed after configuring web filtering (enhanced/surf control/local webfiltering)

How to view webfiltering logs in in a syslog file


To configure a syslog file and view web filtering logs

The following procedure outlines the creation of a syslog file to capture web filtering logs. The match statement of "WEBFILTER_" is used to capture all web filtering logs.


root@SRX # set system syslog file webfilter-log match WEBFILTER_ any any

The following output displays the log file. The default action was set to 'permit-and-log'. This is why permitted URLs are shown in the log file.

Oct 25 16:08:54  rng-aa RT_UTM: WEBFILTER_URL_PERMITTED: WebFilter: ACTION="URL Permitted"> CATEGORY="N/A" REASON="BY_OTHER" PROFILE="junos-wf-enhanced-default" OBJ=/prod/assets/header_sprite_fp.v4.png USERNAME=N/A ROLES=N/A

To view only the blocked URLs, run the same command but match on URL_BLOCKED. This displays only the web filtering URL blocked log events. The log file configuration could also be modified to match 'WEBFILTER_URL_BLOCKED'. This would write only these types of events to the log file.

Oct 25 16:08:54  rng-aa RT_UTM: WEBFILTER_URL_BLOCKED: WebFilter: ACTION="URL Blocked"> CATEGORY="Enhanced_Advertisements" REASON="BY_PRE_DEFINED" PROFILE="junos-wf-enhanced-default" OBJ=/adj/;pgtyp=espnfrontpage;sp=espn;ref=other;mnr=f;pos=incontent;swid=20b69aac-7584-4e46-b1a6-880a71f319ab;dcopt=ist;sz=300x600,300x250,1x1;tile=3;ord=3800646760 USERNAME=N/A ROLES=N/A

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search