<div dir="ltr"><div><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium">What if the standard entry was extended:</span></div><div><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium"><br></span></div><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium">    log:/var/log/messages:10240</span><br style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium"><div><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium">    log:/var/log/file-with-html:10240:html</span><br style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium"></div><div><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium"><br></span></div><div><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium">That would allow any log file to be designated for url-encoding before being uploaded to Xymon, without breaking existing configurations.</span></div><div><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium"><br></span></div><div><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium">Or did I miss the point of the original question?</span></div><div><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium"><br></span></div><div><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium">Ralph Mitchell</span></div><div><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium"><br></span></div><div><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 13, 2015 at 10:10 PM, J.C. Cleaver <span dir="ltr"><<a href="mailto:cleaver@terabithia.org" target="_blank">cleaver@terabithia.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
<br>
On Fri, March 13, 2015 4:11 pm, Shawn Heisey wrote:<br>
> I have a log entry that looks like this:<br>
><br>
> [2015-03-02 13:32:43.011110] E<br>
> [dht-linkfile.c:213:dht_linkfile_setattr_cbk] 0-mdfs-dht: setattr of<br>
> uid/gid on /newscom/mdfs/ZUMA/zumaamericaseight/docs/364/090<br>
> :<gfid:00000000-0000-0000-0000-000000000000> failed (Invalid argument)<br>
><br>
><br>
> This is in the gluster NFS log.  I wanted to stop getting alarms on this<br>
> log entry, so I looked at what I get when I click on the red icon under<br>
> "msgs" in my browser ... only that shows up like this (not exactly the<br>
> same log entry, but the format is the same):<br>
><br>
> .2015-03-13 22:48:18.447034] E<br>
> [dht-linkfile.c:213:dht_linkfile_setattr_cbk] 0-mdfs-dht: setattr of<br>
> uid/gid on /newscom/mdfs/IS/isphotos/docs/056/515 : failed (Invalid<br>
> argument)<br>
><br>
> The problem is that the browser interpreted the part starting with<br>
> "<gfid:" and ending with ">" as an HTML tag, so it didn't display it.  I<br>
> did not realize this was happening, so I built an "ignore" line for<br>
> client-local.cfg that did not include that part, and I was really<br>
> scratching my head as to why my ignore did not work.<br>
><br>
> Would it be possible to automatically convert characters in log entries<br>
> that are special to HTML into their HTML equivalents for display in a<br>
> browser?  In this case, < would become &lt; ... > would be %gt; ... and<br>
> so on.<br>
><br>
> Thanks,<br>
> Shawn<br>
<br>
<br>
</div></div>Shawn,<br>
<br>
It would require a code change, however this would be possible.<br>
Unfortunately, it would also prevent people from adding their own useable<br>
HTML links into the content (which is either a feature or a bug, I<br>
suppose)<br>
<br>
That may specifically be a useful tradeoff in the case of log files, however.<br>
<br>
<br>
Regards,<br>
<br>
-jc<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</div></div></blockquote></div><br></div>