<div dir="ltr"><div class="gmail_quote">On 17 February 2011 12:33, Martin B. Smith <span dir="ltr"><<a href="mailto:smithmb@ufl.edu">smithmb@ufl.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 2/16/2011 3:50 AM, Amos Shapira wrote:<br>
> When I saw regexp used in collectd configuration file (using the tail<br>
> plugin) it was double quoted, ie \\ for \.<br>
<br>
</div>Hi Amos,<br>
<br>
Thank you for the tip. That made it so my regexp did start matching. I<br>
couldn't tell if the vertical pipe needed the double-escape or not.<br>
<br>
Could you also explain why only my first <Match> actually gets results<br>
given the output:<br>
<div class="im"><br>
> active_users_count|3|3|<br>
> active_users_5mins|0|0|<br>
> active_users_30mins|1|1|<br>
> active_users_60mins|1|1|<br>
<br>
</div>My matches look like:<br>
<div class="im"><br>
<Match><br>
Regex "active_users_count\\|([0-9]+)"<br>
DSType "GaugeLast"<br>
Type "my_users"<br>
Instance "active_users_count"<br>
</Match><br>
</div> <Match><br>
Regex "active_users_5mins\\|([0-9]+)"<br>
DSType "CounterSet"<br>
Type "my_users"<br>
Instance "active_users_5mins"<br>
</Match><br>
<Match><br>
Regex "active_users_30mins\\|([0-9]+)"<br>
DSType "CounterSet"<br>
Type "my_users"<br>
Instance "active_users_30mins"<br>
</Match><br>
<br>
It seems weird that only the first match now returns data. Does only one<br>
match apply per Page URL?<br></blockquote><div><br>Sorry I can't answer that, I'm not familiar with this plugin.<br><br>Have you though of trying to use a separator which is not a special regexp character, thus avoiding the issue with "|"?<br>
<br>--Amos<br><br></div></div></div>