Submit a ticketCall us

Looking to compare latest NPM features with previous versions of NPM?
The NPM new feature summary offers a comparison of new features and improvements offered with this release.

 

Home > Success Center > Kiwi Syslog Server > Filter text containing double quotes in Kiwi Syslog

Filter text containing double quotes in Kiwi Syslog

Table of contents
Created by Richard Casey, last modified by MindTouch on Jun 23, 2016

Views: 23 Votes: 1 Revisions: 4

Overview

This article provides information when some Kiwi Syslog message containing double quotes. The text need to be filtered.

An example message:

message number="234"

Environment

All Kiwi Syslog versions

Detail

As the text based filters use double quotes in order to identify the required text in a syslog message it is not possible to use the double quotes inside the message text in a simple or complex filter.

 

To overcome this, it is necessary to use a regular expression filter with the \(exclude symbol) in combination with the ASCII character set hexadecimal value.

 

In order to filter on the example above:

"message number=\x22234\x22"

The \x22 is the escape sequence for the double quote symbol, x indicates the ASCII hexadecimal code ".

 

To obtain other ASCII values, see http://www.ascii-code.com/ for a complete listing of the hexadecimal values for each of the ASCI characters.

 

 

 

 

 

Last modified
19:47, 22 Jun 2016

Tags

Classifications

Public