summaryrefslogtreecommitdiff
path: root/gemfeed/2021-04-22-dtail-the-distributed-log-tail-program.html
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2022-06-15 08:54:26 +0100
committerPaul Buetow <paul@buetow.org>2022-06-15 08:54:26 +0100
commite4676049f25c5fa0cb645d1555934fda88029fd5 (patch)
tree53bdd9694d755e56dbc375c6459adf104bbf5036 /gemfeed/2021-04-22-dtail-the-distributed-log-tail-program.html
parent03a55d2eeaa2da52f071571942082edeba6613dc (diff)
sweating the small stuff
Diffstat (limited to 'gemfeed/2021-04-22-dtail-the-distributed-log-tail-program.html')
-rw-r--r--gemfeed/2021-04-22-dtail-the-distributed-log-tail-program.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/gemfeed/2021-04-22-dtail-the-distributed-log-tail-program.html b/gemfeed/2021-04-22-dtail-the-distributed-log-tail-program.html
index 8b89e885..590c284e 100644
--- a/gemfeed/2021-04-22-dtail-the-distributed-log-tail-program.html
+++ b/gemfeed/2021-04-22-dtail-the-distributed-log-tail-program.html
@@ -47,7 +47,7 @@
<p>The following example would connect to all DTail servers listed in the serverlist.txt, follow all files with the ending .log and filter for lines containing the string error. You can specify any Go compatible regular expression. In this example we add the case-insensitive flag to the regex:</p>
<pre>
dtail –servers serverlist.txt –files ‘/var/log/*.log’ –regex ‘(?i:error)’
-</pre>
+</pre><br />
<p>You usually want to specify a regular expression as a client argument. This will mean that responses are pre-filtered for all matching lines on the server-side and thus sending back only the relevant lines to the client. If your logs are growing very rapidly and the regex is not specific enough there might be the chance that your client is not fast enough to keep up processing all of the responses. This could be due to a network bottleneck or just as simple as a slow terminal emulator displaying the log lines on the client-side.</p>
<p>A green 100 in the client output before each log line received from the server always indicates that there were no such problems and 100% of all log lines could be displayed on your terminal (have a look at the animated Gifs in this post). If the percentage falls below 100 it means that some of the channels used by the servers to send data to the client are congested and lines were dropped. In this case, the color will change from green to red. The user then could decide to run the same query but with a more specific regex.</p>
<p>You could also provide a comma-separated list of servers as opposed to a text file. There are many more options you could use. The ones listed here are just the very basic ones. There are more instructions and usage examples on the GitHub page. Also, you can study even more of the available options via the –help switch (some real treasures might be hidden there).</p>