technik

Need a logmon - regex hint. How to eliminate comma or dot from result string?

Discussion created by technik on Jun 21, 2010
Latest reply on Jun 22, 2010 by technik

Hi,

 

I have a logfile (from a backup-system) with a lot of statistic lines. The values I like to fetch as QoS are often formatted (e.g. thousand seperator).

 

Example:

 

This is a text:    10,354

 

With the regex:

/This is a text:\s*([0-9]*)[,\.]([0-9]*)/

 

...I seperated 10 and 354 in the result variable $1 and $2.

 

Is it possible to concat $1 and $2 in the regex or in the logmon-rules to 10354 so I can push it into the SLM-DB?

 

Regards,

Olaf

 

Sorry: I'm a regex rookie :smileywink:

Outcomes