diff options
| author | Paul Buetow <paul@buetow.org> | 2023-04-08 12:32:25 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2023-04-08 12:32:25 +0300 |
| commit | 89f83d49ad7d4cd8baa815993d3172ca72e5b30e (patch) | |
| tree | f91acfa483e4ef3a0632af7f0f91d8b45cc9d76d /gemfeed/2022-10-30-installing-dtail-on-openbsd.html | |
| parent | d0098c5faf74b0b3291395114b99bc5c309718b3 (diff) | |
Update content for html
Diffstat (limited to 'gemfeed/2022-10-30-installing-dtail-on-openbsd.html')
| -rw-r--r-- | gemfeed/2022-10-30-installing-dtail-on-openbsd.html | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/gemfeed/2022-10-30-installing-dtail-on-openbsd.html b/gemfeed/2022-10-30-installing-dtail-on-openbsd.html index 53bd9b1c..5f2615a3 100644 --- a/gemfeed/2022-10-30-installing-dtail-on-openbsd.html +++ b/gemfeed/2022-10-30-installing-dtail-on-openbsd.html @@ -10,7 +10,7 @@ <body> <h1 style='display: inline'>Installing DTail on OpenBSD</h1><br /> <br /> -<span class=quote>Published at 2022-10-30T11:03:19+02:00</span><br /> +<span class='quote'>Published at 2022-10-30T11:03:19+02:00</span><br /> <br /> <pre> ,_---~~~~~----._ @@ -53,17 +53,17 @@ <br /> <span> In this post, I want to give a quick overview (or how-to) about installing DTail on OpenBSD, as the official documentation only covers Red Hat and Fedora Linux! And this blog post will also be used as my reference!</span><br /> <br /> -<a class=textlink href='https://dtail.dev'>https://dtail.dev</a><br /> +<a class='textlink' href='https://dtail.dev'>https://dtail.dev</a><br /> <br /> <span>I am using Rexify for my OpenBSD automation. Check out the following article covering my Rex setup in a little bit more detail:</span><br /> <br /> -<a class=textlink href='./2022-07-30-lets-encrypt-with-openbsd-and-rex.html'>Let's Encrypt with OpenBSD and Rex</a><br /> +<a class='textlink' href='./2022-07-30-lets-encrypt-with-openbsd-and-rex.html'>Let's Encrypt with OpenBSD and Rex</a><br /> <br /> -<span>I will also mention some relevant <span class=inlinecode>Rexfile</span> snippets in this post!</span><br /> +<span>I will also mention some relevant <span class='inlinecode'>Rexfile</span> snippets in this post!</span><br /> <br /> <h2 style='display: inline'>Compile it</h2><br /> <br /> -<span>First of all, DTail needs to be downloaded and compiled. For that, <span class=inlinecode>git</span>, <span class=inlinecode>go</span>, and <span class=inlinecode>gmake</span> are required:</span><br /> +<span>First of all, DTail needs to be downloaded and compiled. For that, <span class='inlinecode'>git</span>, <span class='inlinecode'>go</span>, and <span class='inlinecode'>gmake</span> are required:</span><br /> <br /> <pre> $ doas pkg_add git go gmake @@ -88,7 +88,7 @@ $ file dtail dtail: ELF 64-bit LSB executable, x86-64, version 1 </pre> <br /> -<span>Now, there isn't any need anymore to keep <span class=inlinecode>git</span>, <span class=inlinecode>go</span> and <span class=inlinecode>gmake</span>, so they can be deinstalled now:</span><br /> +<span>Now, there isn't any need anymore to keep <span class='inlinecode'>git</span>, <span class='inlinecode'>go</span> and <span class='inlinecode'>gmake</span>, so they can be deinstalled now:</span><br /> <br /> <pre> $ doas pkg_delete git go gmake @@ -98,7 +98,7 @@ $ doas pkg_delete git go gmake <br /> <h2 style='display: inline'>Install it</h2><br /> <br /> -<span>Installing the binaries is now just a matter of copying them to <span class=inlinecode>/usr/local/bin</span> as follows:</span><br /> +<span>Installing the binaries is now just a matter of copying them to <span class='inlinecode'>/usr/local/bin</span> as follows:</span><br /> <br /> <pre> $ for bin in dserver dcat dgrep dmap dtail dtailhealth; do @@ -107,7 +107,7 @@ $ for bin in dserver dcat dgrep dmap dtail dtailhealth; do done </pre> <br /> -<span>Also, we will be creating the <span class=inlinecode>_dserver</span> service user:</span><br /> +<span>Also, we will be creating the <span class='inlinecode'>_dserver</span> service user:</span><br /> <br /> <pre> $ doas adduser -class nologin -group _dserver -batch _dserver @@ -140,7 +140,7 @@ $ doas chmod 755 /etc/rc.d/dserver <br /> <h3 style='display: inline'>Rexification</h3><br /> <br /> -<span>This is the task for setting it up via Rex. Note the <span class=inlinecode>. . . .</span>, that's a placeholder which we will fill up more and more during this blog post:</span><br /> +<span>This is the task for setting it up via Rex. Note the <span class='inlinecode'>. . . .</span>, that's a placeholder which we will fill up more and more during this blog post:</span><br /> <br /> <pre> desc 'Setup DTail'; @@ -175,7 +175,7 @@ $ curl https://raw.githubusercontent.com/mimecast/dtail/master/samples/dtail.jso doas tee /etc/dserver/dtail.json </pre> <br /> -<span>... and then edit it and adjust <span class=inlinecode>LogDir</span> in the <span class=inlinecode>Common</span> section to <span class=inlinecode>/var/log/dserver</span>. The result will look like this:</span><br /> +<span>... and then edit it and adjust <span class='inlinecode'>LogDir</span> in the <span class='inlinecode'>Common</span> section to <span class='inlinecode'>/var/log/dserver</span>. The result will look like this:</span><br /> <br /> <pre> "Common": { @@ -206,9 +206,9 @@ file '/etc/dserver/dtail.json', <br /> <h2 style='display: inline'>Update the key cache for it</h2><br /> <br /> -<span>DTail relies on SSH for secure authentication and communication. However, the system user <span class=inlinecode>_dserver</span> has no permission to read the SSH public keys from the user's home directories, so the DTail server also checks for available public keys in an alternative path <span class=inlinecode>/var/run/dserver/cache</span>. </span><br /> +<span>DTail relies on SSH for secure authentication and communication. However, the system user <span class='inlinecode'>_dserver</span> has no permission to read the SSH public keys from the user's home directories, so the DTail server also checks for available public keys in an alternative path <span class='inlinecode'>/var/run/dserver/cache</span>. </span><br /> <br /> -<span>The following script, populating the DTail server key cache, can be run periodically via <span class=inlinecode>CRON</span>:</span><br /> +<span>The following script, populating the DTail server key cache, can be run periodically via <span class='inlinecode'>CRON</span>:</span><br /> <br /> <pre> $ cat <<'END' | doas tee /usr/local/bin/dserver-update-key-cache.sh @@ -250,7 +250,7 @@ END $ doas chmod 500 /usr/local/bin/dserver-update-key-cache.sh </pre> <br /> -<span>Note that the script above is a slight variation of the official DTail script. The official DTail one is a <span class=inlinecode>bash</span> script, but on OpenBSD, there's <span class=inlinecode>ksh</span>. I run it once daily by adding it to the <span class=inlinecode>daily.local</span>:</span><br /> +<span>Note that the script above is a slight variation of the official DTail script. The official DTail one is a <span class='inlinecode'>bash</span> script, but on OpenBSD, there's <span class='inlinecode'>ksh</span>. I run it once daily by adding it to the <span class='inlinecode'>daily.local</span>:</span><br /> <br /> <pre> $ echo /usr/local/bin/dserver-update-key-cache.sh | doas tee -a /etc/daily.local @@ -315,9 +315,9 @@ All set... <br /> <h2 style='display: inline'>Use it</h2><br /> <br /> -<span>The DTail server is now ready to serve connections. You can use any DTail commands, such as <span class=inlinecode>dtail</span>, <span class=inlinecode>dgrep</span>, <span class=inlinecode>dmap</span>, <span class=inlinecode>dcat</span>, <span class=inlinecode>dtailhealth</span>, to do so. Checkout out all the usage examples on the official DTail page.</span><br /> +<span>The DTail server is now ready to serve connections. You can use any DTail commands, such as <span class='inlinecode'>dtail</span>, <span class='inlinecode'>dgrep</span>, <span class='inlinecode'>dmap</span>, <span class='inlinecode'>dcat</span>, <span class='inlinecode'>dtailhealth</span>, to do so. Checkout out all the usage examples on the official DTail page.</span><br /> <br /> -<span>I have installed DTail server this way on my personal OpenBSD frontends <span class=inlinecode>blowfish</span>, and <span class=inlinecode>fishfinger</span>, and the following command connects as user <span class=inlinecode>rex</span> to both machines and greps the file <span class=inlinecode>/etc/fstab</span> for the string <span class=inlinecode>local</span>:</span><br /> +<span>I have installed DTail server this way on my personal OpenBSD frontends <span class='inlinecode'>blowfish</span>, and <span class='inlinecode'>fishfinger</span>, and the following command connects as user <span class='inlinecode'>rex</span> to both machines and greps the file <span class='inlinecode'>/etc/fstab</span> for the string <span class='inlinecode'>local</span>:</span><br /> <br /> <pre> ❯ ./dgrep -user rex -servers blowfish.buetow.org,fishfinger.buetow.org --regex local /etc/fstab @@ -345,19 +345,19 @@ REMOTE|fishfinger|100|7|fstab|093f510ec5c0f512.h /usr/local ffs rw,wxallowed,nod <br /> <span>Check out the following for more information:</span><br /> <br /> -<a class=textlink href='https://dtail.dev'>https://dtail.dev</a><br /> -<a class=textlink href='https://github.com/mimecast/dtail'>https://github.com/mimecast/dtail</a><br /> -<a class=textlink href='https://www.rexify.org'>https://www.rexify.org</a><br /> +<a class='textlink' href='https://dtail.dev'>https://dtail.dev</a><br /> +<a class='textlink' href='https://github.com/mimecast/dtail'>https://github.com/mimecast/dtail</a><br /> +<a class='textlink' href='https://www.rexify.org'>https://www.rexify.org</a><br /> <br /> <span>Other related posts are:</span><br /> <br /> -<a class=textlink href='./2022-10-30-installing-dtail-on-openbsd.html'>2022-10-30 Installing DTail on OpenBSD (You are currently reading this)</a><br /> -<a class=textlink href='./2022-03-06-the-release-of-dtail-4.0.0.html'>2022-03-06 The release of DTail 4.0.0</a><br /> -<a class=textlink href='./2021-04-22-dtail-the-distributed-log-tail-program.html'>2021-04-22 DTail - The distributed log tail program</a><br /> +<a class='textlink' href='./2022-10-30-installing-dtail-on-openbsd.html'>2022-10-30 Installing DTail on OpenBSD (You are currently reading this)</a><br /> +<a class='textlink' href='./2022-03-06-the-release-of-dtail-4.0.0.html'>2022-03-06 The release of DTail 4.0.0</a><br /> +<a class='textlink' href='./2021-04-22-dtail-the-distributed-log-tail-program.html'>2021-04-22 DTail - The distributed log tail program</a><br /> <br /> <span>E-Mail your comments to hi@paul.cyou :-)</span><br /> <br /> -<a class=textlink href='../'>Back to the main site</a><br /> +<a class='textlink' href='../'>Back to the main site</a><br /> <p class="footer"> Generated with <a href="https://codeberg.org/snonux/gemtexter">Gemtexter</a> | served by <a href="https://www.OpenBSD.org">OpenBSD</a>/<a href="https://man.openbsd.org/httpd.8">httpd(8)</a> | |
