Solved

SRX240 SYSLOG Setting

Posted on 2016-11-04
6
142 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 30

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 26

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 30

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 26

Author Closing Comment

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

Expert Comment

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

Featured Post

When ransomware hits your clients, what do you do?

MSPs: Endpoint security isn’t enough to prevent ransomware.
As the impact and severity of crypto ransomware attacks has grown, Webroot has fought back, not just by building a next-gen endpoint solution capable of preventing ransomware attacks but also by being a thought leader.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Monitor input from a computer is usually nothing special.  In this instance it prevented anyone from using the computer.  This was a preconfiguration that didn't work.
pc, laptop  monitor connection configurations
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

729 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