Home » Categories » Products » Nagios Log Server » Troubleshooting » Common Problems

Nagios Log Server - Newline Character Added When Adding A Filter To A Search

Problem Description

You will observe that sometimes filters that are added to a search contain a newline (\n) character to the filter and due to this no results are found.

 

 

Explanation

In this screenshot, you can see that from an event, clicking the Magnifying Glass icon will add a filter which matches the value in the field:

 

 

This screenshot shows the filter that was added. You can see that \n was added to the filter, and you can see below this causes 0 hits to be returned:

 

 

You can edit the filter to remove \n which will result in search results being correctly returned.

 

 

 

Resolving The Problem

What is causing this is that the original server that sent the syslog message had \n as part of the message. When you are seeing the value in the event in Nagios Log Server, \n is not being displayed, but it is there in the data.

It has been observed that:

  • When syslogs are sent via TCP, \n is also sent

  • When syslogs are sent via UDP, \n is NOT sent

For more information about TCP and UDP with syslog, please refer to this KB article under the section "Remote Server - Check Rsyslog Config":

Documentation - Logs Not Searchable or Not Coming In

 

 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/

1 (1)
Article Rating (1 Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Nagios Log Server - Resetting nagiosadmin Password
Viewed 2356 times since Tue, Aug 9, 2016
Nagios Log Server - Troubleshooting SELinux and rsyslog
Viewed 1640 times since Wed, Mar 30, 2016
Nagios Log Server - License Key Not Accepted
Viewed 1014 times since Wed, Apr 12, 2017
Nagios Log Server - Waiting For Database Startup
Viewed 1271 times since Wed, Oct 12, 2016
Nagios Log Server - License Activation Issues
Viewed 999 times since Wed, Dec 13, 2017
Nagios Log Server - Understanding and Troubleshooting Yellow Cluster Health
Viewed 2851 times since Mon, Feb 15, 2016
Active Directory / LDAP - Troubleshooting Authentication Integration
Viewed 3559 times since Mon, Jun 26, 2017
Web Browser Reports 330 Error Content Encoding
Viewed 1027 times since Tue, Mar 7, 2017
Nagios Log Server - Logstash not running after upgrade to 2.0
Viewed 842 times since Tue, Nov 14, 2017
Nagios Log Server - Administration Page Fails To Display
Viewed 1286 times since Thu, Jan 21, 2016