Hello,
I need tips to convert a health Check Http table in many doc's using a pipeline. I only want transform table and in many doc's and columns in different field.
I thought in getting page in txt and replace in a csv and after importing using csv input plugin. But if there are another way to do that only using logstash plugins, I'd appreciate to know how. I already read about http_poller, but I didn't found a filter to get only a table data at message field and convert in many outputs docs.
The table can be none lines or a lot lines. And include a Field with "SWE:" information on each line ("/ocs_validarelegibilidade/").
Page example:
Text page:
<html><head><title>SWE: /ocs_validarelegibilidade/</title></head>
<body><h1>SWE: /ocs_validarelegibilidade/</h1>
<p>Statistics for SWE application "/ocs_validarelegibilidade/" (virtual directory: <tt>/ocs_validarelegibilidade/</tt>):</p>
<blockquote>627 requests, 264 errors, total time: 63s, min: <1ms, max: 1.77s, avg: 100ms (initialization: <1ms)</blockquote>
<p>Statistics for entire SWE ISAPI extension:</p>
<blockquote>2080 requests, 338 errors, total time: 83s, min: <1ms, max: 2.6s, avg: 40ms (initialization: 10ms)</blockquote>
<blockquote>Last running average of 10 ==> Create: <1ms, ReadClient: <1ms, GetUser: 109ms, GetService: <1ms, BuildArgs: <1ms, ObjMgr: 27ms, BuildPage: <1ms, SendClient: <1ms</blockquote>
<blockquote>Averages ==> Create: <1ms, ReadClient: <1ms, GetUser: 31ms, GetService: <1ms, BuildArgs: <1ms, ObjMgr: 6ms, BuildPage: <1ms, SendClient: <1ms</blockquote>
<h2>Active SOM Users</h2>
<table border=1 cellspacing=0 cellpadding=0>
<tr valign=center><th align=left rowspan=2> User ID </th><th align=left rowspan=2> Session ID </th><th align=left rowspan=2> Client Host </th><th align=center rowspan=2> State </th><th align=left rowspan=2> User </th><th align=center rowspan=2> Requests </th><th align=center rowspan=2> Errors </th><th align=center colspan=5> Timings </th></tr>
<tr valign=center><th align=center> Total </th><th align=center> Min </th><th align=center> Max </th><th align=center> Avg. </th><th align=center> Init. </th></tr>
<tr><td align=left> A17U135 </td><td align=left> ehtwqtn9kiyc0000000nkrkva2mqrtvli </td><td align=left> 10.59.230.30 </td><td align=center> idle 45s </td><td align=left> USER1 </td><td align=center> 2 </td><td align=center> 0 </td><td align=center> 496ms </td><td align=center> 128ms </td><td align=center> 368ms </td><td align=center> 248ms </td><td align=center> 366ms </td></tr>
<tr><td align=left> A17U134 </td><td align=left> ehtwqtk8kftet0000000000c8ngybmbw </td><td align=left> 10.59.231.30 </td><td align=center> idle 2:15 </td><td align=left> USER2 </td><td align=center> 2 </td><td align=center> 0 </td><td align=center> 524ms </td><td align=center> 145ms </td><td align=center> 379ms </td><td align=center> 262ms </td><td align=center> 376ms </td></tr>
</table>
<p>(2 SOM users active.)</p>
<p><hr size=1 noshade>
This report produced by the <i>Siebel Web Engine</i> (SWE) for <I>Microsoft Internet Information Server</I>.<br>Copyright © Siebel Systems, Inc. 1999. All rights reserved.</p>
</body></html>