Difference between revisions of "UM:Log Monitoring"

2,122 bytes removed ,  14:25, 2 April 2012
Line 303: Line 303:


This tag has no effect for text log files, and can be used as a synonym for <nowiki><source></nowiki> tag for Windows Event Log monitoring.
This tag has no effect for text log files, and can be used as a synonym for <nowiki><source></nowiki> tag for Windows Event Log monitoring.


=== <severity> Tag ===
=== <severity> Tag ===
<nowiki>Tag <severity> can be used to filter syslog records (received by NetXMS built-in syslog server) by severity level. Each severity level has it's own code, and to filter by multiple severity levels you should specify sum of appropriate codes. Severity level codes are following:</nowiki>
Tag <nowiki><severity></nowiki> can be used to filter syslog records (received by NetXMS built-in syslog server) by severity level. Each severity level has it's own code, and to filter by multiple severity levels you should specify sum of appropriate codes. Severity level codes are following:
 
 
{| style="border-spacing:0;"
| style="border-top:0.0007in solid #000000;border-bottom:0.0007in solid #000000;border-left:0.0007in solid #000000;border-right:none;padding:0.0382in;"| 1
| style="border:0.0007in solid #000000;padding:0.0382in;"| Emergency


{| class="wikitable"
|-
! Code !! Severity
|-
| 1 || Emergency
|-
|-
| style="border-top:none;border-bottom:0.0007in solid #000000;border-left:0.0007in solid #000000;border-right:none;padding:0.0382in;"| 2
| 2 || Alert
| style="border-top:none;border-bottom:0.0007in solid #000000;border-left:0.0007in solid #000000;border-right:0.0007in solid #000000;padding:0.0382in;"| Alert
 
|-
|-
| style="border-top:none;border-bottom:0.0007in solid #000000;border-left:0.0007in solid #000000;border-right:none;padding:0.0382in;"| 4
| 4 || Critical
| style="border-top:none;border-bottom:0.0007in solid #000000;border-left:0.0007in solid #000000;border-right:0.0007in solid #000000;padding:0.0382in;"| Critical
 
|-
|-
| style="border-top:none;border-bottom:0.0007in solid #000000;border-left:0.0007in solid #000000;border-right:none;padding:0.0382in;"| 8
| 8 || Error
| style="border-top:none;border-bottom:0.0007in solid #000000;border-left:0.0007in solid #000000;border-right:0.0007in solid #000000;padding:0.0382in;"| Error
 
|-
|-
| style="border-top:none;border-bottom:0.0007in solid #000000;border-left:0.0007in solid #000000;border-right:none;padding:0.0382in;"| 16
| 16 || Warning
| style="border-top:none;border-bottom:0.0007in solid #000000;border-left:0.0007in solid #000000;border-right:0.0007in solid #000000;padding:0.0382in;"| Warning
 
|-
|-
| style="border-top:none;border-bottom:0.0007in solid #000000;border-left:0.0007in solid #000000;border-right:none;padding:0.0382in;"| 32
| 32 || Notice
| style="border-top:none;border-bottom:0.0007in solid #000000;border-left:0.0007in solid #000000;border-right:0.0007in solid #000000;padding:0.0382in;"| Notice
 
|-
|-
| style="border-top:none;border-bottom:0.0007in solid #000000;border-left:0.0007in solid #000000;border-right:none;padding:0.0382in;"| 64
| 64 || Informational
| style="border-top:none;border-bottom:0.0007in solid #000000;border-left:0.0007in solid #000000;border-right:0.0007in solid #000000;padding:0.0382in;"| Informational
 
|-
|-
| style="border-top:none;border-bottom:0.0007in solid #000000;border-left:0.0007in solid #000000;border-right:none;padding:0.0382in;"| 128
| 128 || Debug
| style="border-top:none;border-bottom:0.0007in solid #000000;border-left:0.0007in solid #000000;border-right:0.0007in solid #000000;padding:0.0382in;"| Debug
|}


|}
Some examples:
Some examples:


 
<syntaxhighlight lang="xml">
<nowiki><severity>1</severity></nowiki>
<severity>1</severity>
 
</syntaxhighlight>


will match all records with severity level "Emergency", and
will match all records with severity level "Emergency", and


 
<syntaxhighlight lang="xml">
<nowiki><severity>6</severity></nowiki>
<severity>6</severity>
 
</syntaxhighlight>


will match all records with severity level "Alert" or "Critical".
will match all records with severity level "Alert" or "Critical".


 
This tag has no effect for text log files, and can be used as a synonym for <nowiki><level></nowiki> tag for Windows Event Log monitoring.
<nowiki>This tag has no effect for text log files, and can be used as a synonim for <level> tag for Windows Event Log monitoring.</nowiki>
 


=== <description> Tag ===
=== <description> Tag ===
683

edits