09-28-2010 02:57 PM
Hello,
I've configured some of my Policies with logging. But when I entered the Web Device Manager and klick on the Logging Symbol under Firewall Policies, i cannot see any entries. I've found a knowledge base entry how to write the policy logs to a seperate file. this works very well, but i can't see anything in the WebGui. The Problem occours in Junos 10.1R3 and in 10.2R2.11, too.
What the problem?
show system syslog
archive size 100k files 3;
user * {
any emergency;
}
inactive: host 10.130.110.1 {
security any;
kernel emergency;
user any;
change-log any;
}
file messages {
any critical;
authorization info;
}
file interactive-commands {
interactive-commands error;
}
file traffic-log {
any any;
match RT_FLOW_SESSION;
}
[edit]
show security policies from-zone trust to-zone untrust
policy Linux-machines-to-any {
match {
source-address Range_linux;
destination-address any;
application any;
}
then {
permit;
log {
session-close;
}
}
}
09-28-2010 04:04 PM
09-29-2010 11:37 AM
Thank you for your answer. That means I have to wait until this issue is solved in any future release?!
09-29-2010 09:35 PM
Yes, you will have to either wait till it is resolved, use an external syslog server, or live with the alternate log viewing on the box. My usual solution is using grep to find the logs that match the policy ID I am interested in from the firewall CLI.
Ron
02-14-2011 06:48 AM
Anyone know if this has been fixed in 10.4?
Thanks!
02-14-2011 11:19 AM
Nope. As in no logging information present.
03-29-2011 07:54 AM
Anyone know if this is fixed in 10.4R3?
Having a tough time explaing to the customer that his new all singing and dancing firewall cant even show logs in Jweb. ![]()
03-29-2011 07:18 PM
Go to Monitor/Events and Alarms/Security events. See if the log file(s) configured is being detected by the page. If not the "Creat log configuration" will be enabled. When you click on it it creates the proper syslog config and you can start seeing logs.
The important thing is the world readable attribute should be set.
This is a sample
# show | compare rollback 1
[edit system syslog]
file inter { ... }
+ file policy_session {
+ user info;
+ match RT_FLOW;
+ archive size 1000k world-readable;
+ structured-data;
+ }
Regards
03-30-2011 01:27 AM
w00t!
Adding the world readable parameter solved my issue here, I now see logs within the log viewer in Jweb.
Note, I am using 10.2R3.10
Cuddles
DM
03-30-2011 01:57 AM
Oops, I spoke too soon.
I can get logs for some policies but not for others.
Basically I can see the logs in my custom traffic-log file when viewed from the CLI, and this does seem to refelct the corerect policy and zonal match however, when I click on the log icon in the security policay page, I get nothing returned.
Are there any caveats to what we can log successfully? At the moment I am logging on session-close and have been waiting a while for all the sessions to time out fully.