Solved

SRX240 SYSLOG Setting

Posted on 2016-11-04
6
53 Views
Last Modified: 2016-11-19
I need to set the syslog level to error level 4 but I'm not sure of the configuration notation:

Here is a short section of the config:the config code
I believe the issue is "any any" but I can't find the alternative that's needed.

If you know, then great.  If you don't know then please don't confuse me!  :-)  The system is in production so I don't want to experiment.
0
Comment
Question by:Fred Marshall
  • 3
  • 2
6 Comments
 
LVL 26

Accepted Solution

by:
Predrag Jovic earned 500 total points
ID: 41874908
What facilities? Junos OS System Logging Facilities

System Log Message Severity:

any - Includes all severity levels

0 - emergency - System panic or other condition that causes the router to stop functioning
1 - alert - Conditions that require immediate correction, such as a corrupted system database
2 - critical - Critical conditions, such as hard errors
3 - error - Error conditions that generally have less serious consequences than errors at the emergency, alert, and critical levels
4 - warning - Conditions that warrant monitoring
5 - notice - Conditions that are not errors but might warrant special handling
6 - info - Events or nonerror conditions of interest
7 - debug - Events that relate to debugging a device

Juniper example - with explanation. :)

Could be different for SRX240, but the basics should be the same.

So, the first "any" is facility - all facilities
The second one "any" is all error severity levels

any warning    <-- would be any facility for severity level 4 to 0
0
 
LVL 25

Author Comment

by:Fred Marshall
ID: 41875052
Thanks!  Well I'm still just a little confused.  The settings now are generating *way* too much data and most isn't needed.  The need is to send logs into an SIEM analyzer.  It was suggested that I "change facility to local 4" and "error" was part of the description as well.  The discussion was NOT in a Juniper context.

So, I'm thinking now, with your guidance, that I perhpas should have something more like:

host 10.10.xxx.xxx {
     any error; /* or perhaps any warning; */
     port 514;
}

Do you see anything else that jumps out as curious in this configuration for this SIEM purpose?
0
 
LVL 26

Expert Comment

by:Predrag Jovic
ID: 41875155
Typically, I don't work with logging analyzers I just know basics from documentation (present on too many certifications, if you ask me, so I was forced to learn some basics  :) ).
It should not matter is it or is not in Juniper context, it is standardized severity list (defined in RFC 3164 and revised in RFC 5424 (which made 3164 obsolete)). Cisco (and most likely all other vendors) have exactly the same severity levels list. I know nothing about SIEM analyzer, but how it is typically done: you configure device to log specific severity level and whatever is logged will be sent to logging server (if login server is configured of course). Every severity level (as you are changing levels from 7 to 0) generate significantly less messages especially as you are changing it from level 7 or 6 to level 5 (severity level 4 and above should not create much messages in healthy environment).

any warning  - looks good to me (even notice looks good), but I would not recommend myself as adviser on SIEM analyzer subject (and I don't know your needs)  :)

for example at Cisco if interface is shut it will generate messages
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to administratively down

Open in new window

5 is severity level event. By default Cisco logs evens severity level 5 and above (up to 0).
0
 
LVL 25

Author Closing Comment

by:Fred Marshall
ID: 41894427
Thanks!  It seems to be working.
0
 
LVL 26

Expert Comment

by:Predrag Jovic
ID: 41894541
Glad to hear it. You are welcome.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
Moving your enterprise fax infrastructure from in-house fax machines and servers to the cloud makes sense — from both an efficiency and productivity standpoint. But does migrating to a cloud fax solution mean you will no longer be able to send or re…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now