Dieser Commit ist enthalten in:
milkmaker 2022-05-24 16:56:30 +00:00
Ursprung 4aad2bcae5
Commit 3ecd33123a
5 geÀnderte Dateien mit 116 neuen und 28 gelöschten Zeilen

Datei anzeigen

@ -570,6 +570,19 @@
Über docker-compose.override.yml Über docker-compose.override.yml
</a> </a>
<nav class="md-nav" aria-label="Über docker-compose.override.yml">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#nur-fur-rsyslog" class="md-nav__link">
Nur fĂŒr rsyslog:
</a>
</li>
</ul>
</nav>
</li> </li>
<li class="md-nav__item"> <li class="md-nav__item">
@ -2442,6 +2455,19 @@
Über docker-compose.override.yml Über docker-compose.override.yml
</a> </a>
<nav class="md-nav" aria-label="Über docker-compose.override.yml">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#nur-fur-rsyslog" class="md-nav__link">
Nur fĂŒr rsyslog:
</a>
</li>
</ul>
</nav>
</li> </li>
<li class="md-nav__item"> <li class="md-nav__item">
@ -2526,15 +2552,19 @@ services:
options: options:
syslog-address: &quot;udp://127.0.0.1:514&quot; syslog-address: &quot;udp://127.0.0.1:514&quot;
syslog-facility: &quot;local3&quot; syslog-facility: &quot;local3&quot;
# Nur fĂŒr Rsyslog:
# Um die local3-Eingabe nach /var/log/mailcow.log zu verschieben und die Verarbeitung zu beenden, erstellen Sie eine Datei &quot;/etc/rsyslog.d/docker.conf&quot;:
local3.* /var/log/mailcow.logs
&amp; stop
# Danach rsyslog neu starten.
</code></pre></div> </code></pre></div>
<h5 id="nur-fur-rsyslog">Nur fĂŒr rsyslog:<a class="headerlink" href="#nur-fur-rsyslog" title="Permanent link">&para;</a></h5>
<p>Stellen Sie sicher, dass folgende Zeilen in <code>/etc/rsyslog.conf</code> nicht auskommentiert sind:</p>
<div class="highlight"><pre><span></span><code># provides UDP syslog reception
module(load=&quot;imudp&quot;)
input(type=&quot;imudp&quot; port=&quot;514&quot;)
</code></pre></div>
<p>Um EingÀnge von <code>local3</code> in <code>/var/log/mailcow.log</code> zu leiten und danach die Verarbeitung zu stoppen,
erstellen Sie die Datei <code>/etc/rsyslog.d/docker.conf</code>:</p>
<div class="highlight"><pre><span></span><code>local3.* /var/log/mailcow.log
&amp; stop
</code></pre></div>
<p>Starten Sie rsyslog danach neu.</p>
<h4 id="uber-daemonjson-global">Über daemon.json (global)<a class="headerlink" href="#uber-daemonjson-global" title="Permanent link">&para;</a></h4> <h4 id="uber-daemonjson-global">Über daemon.json (global)<a class="headerlink" href="#uber-daemonjson-global" title="Permanent link">&para;</a></h4>
<p>Wenn Sie den Logging-Treiber <strong>global</strong> Àndern wollen, editieren Sie die Konfigurationsdatei des Docker-Daemons <code>/etc/docker/daemon.json</code> und starten Sie den Docker-Dienst neu:</p> <p>Wenn Sie den Logging-Treiber <strong>global</strong> Àndern wollen, editieren Sie die Konfigurationsdatei des Docker-Daemons <code>/etc/docker/daemon.json</code> und starten Sie den Docker-Dienst neu:</p>
<div class="highlight"><pre><span></span><code>{ <div class="highlight"><pre><span></span><code>{
@ -2563,7 +2593,7 @@ local3.* /var/log/mailcow.logs
<small> <small>
Letztes Update: Letztes Update:
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_datetime">2022-05-24 08:10:43</span> <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_datetime">2022-05-24 16:35:59</span>
</small> </small>

Datei anzeigen

@ -570,6 +570,19 @@
Via docker-compose.override.yml Via docker-compose.override.yml
</a> </a>
<nav class="md-nav" aria-label="Via docker-compose.override.yml">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#for-rsyslog-only" class="md-nav__link">
For Rsyslog only:
</a>
</li>
</ul>
</nav>
</li> </li>
<li class="md-nav__item"> <li class="md-nav__item">
@ -2442,6 +2455,19 @@
Via docker-compose.override.yml Via docker-compose.override.yml
</a> </a>
<nav class="md-nav" aria-label="Via docker-compose.override.yml">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#for-rsyslog-only" class="md-nav__link">
For Rsyslog only:
</a>
</li>
</ul>
</nav>
</li> </li>
<li class="md-nav__item"> <li class="md-nav__item">
@ -2526,15 +2552,18 @@ services:
options: options:
syslog-address: &quot;udp://127.0.0.1:514&quot; syslog-address: &quot;udp://127.0.0.1:514&quot;
syslog-facility: &quot;local3&quot; syslog-facility: &quot;local3&quot;
# For Rsyslog only:
# To move local3 input to /var/log/mailcow.log and stop processing, create a file &quot;/etc/rsyslog.d/docker.conf&quot;:
local3.* /var/log/mailcow.logs
&amp; stop
# Restart rsyslog afterwards.
</code></pre></div> </code></pre></div>
<h5 id="for-rsyslog-only">For Rsyslog only:<a class="headerlink" href="#for-rsyslog-only" title="Permanent link">&para;</a></h5>
<p>Make sure the following lines aren't commented out in <code>/etc/rsyslog.conf</code>:</p>
<div class="highlight"><pre><span></span><code># provides UDP syslog reception
module(load=&quot;imudp&quot;)
input(type=&quot;imudp&quot; port=&quot;514&quot;)
</code></pre></div>
<p>To move <code>local3</code> input to <code>/var/log/mailcow.log</code> and stop processing, create a file <code>/etc/rsyslog.d/docker.conf</code>:</p>
<div class="highlight"><pre><span></span><code>local3.* /var/log/mailcow.log
&amp; stop
</code></pre></div>
<p>Restart rsyslog afterwards.</p>
<h4 id="via-daemonjson-globally">via daemon.json (globally)<a class="headerlink" href="#via-daemonjson-globally" title="Permanent link">&para;</a></h4> <h4 id="via-daemonjson-globally">via daemon.json (globally)<a class="headerlink" href="#via-daemonjson-globally" title="Permanent link">&para;</a></h4>
<p>If you want to <strong>change the logging driver globally</strong>, edit Dockers daemon configuration file <code>/etc/docker/daemon.json</code> and restart the Docker service:</p> <p>If you want to <strong>change the logging driver globally</strong>, edit Dockers daemon configuration file <code>/etc/docker/daemon.json</code> and restart the Docker service:</p>
<div class="highlight"><pre><span></span><code>{ <div class="highlight"><pre><span></span><code>{
@ -2563,7 +2592,7 @@ local3.* /var/log/mailcow.logs
<small> <small>
Last update: Last update:
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_datetime">2022-05-24 08:11:00</span> <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_datetime">2022-05-24 16:35:59</span>
</small> </small>

Datei anzeigen

@ -570,6 +570,19 @@
Via docker-compose.override.yml Via docker-compose.override.yml
</a> </a>
<nav class="md-nav" aria-label="Via docker-compose.override.yml">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#for-rsyslog-only" class="md-nav__link">
For Rsyslog only:
</a>
</li>
</ul>
</nav>
</li> </li>
<li class="md-nav__item"> <li class="md-nav__item">
@ -2442,6 +2455,19 @@
Via docker-compose.override.yml Via docker-compose.override.yml
</a> </a>
<nav class="md-nav" aria-label="Via docker-compose.override.yml">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#for-rsyslog-only" class="md-nav__link">
For Rsyslog only:
</a>
</li>
</ul>
</nav>
</li> </li>
<li class="md-nav__item"> <li class="md-nav__item">
@ -2526,15 +2552,18 @@ services:
options: options:
syslog-address: &quot;udp://127.0.0.1:514&quot; syslog-address: &quot;udp://127.0.0.1:514&quot;
syslog-facility: &quot;local3&quot; syslog-facility: &quot;local3&quot;
# For Rsyslog only:
# To move local3 input to /var/log/mailcow.log and stop processing, create a file &quot;/etc/rsyslog.d/docker.conf&quot;:
local3.* /var/log/mailcow.logs
&amp; stop
# Restart rsyslog afterwards.
</code></pre></div> </code></pre></div>
<h5 id="for-rsyslog-only">For Rsyslog only:<a class="headerlink" href="#for-rsyslog-only" title="Permanent link">&para;</a></h5>
<p>Make sure the following lines aren't commented out in <code>/etc/rsyslog.conf</code>:</p>
<div class="highlight"><pre><span></span><code># provides UDP syslog reception
module(load=&quot;imudp&quot;)
input(type=&quot;imudp&quot; port=&quot;514&quot;)
</code></pre></div>
<p>To move <code>local3</code> input to <code>/var/log/mailcow.log</code> and stop processing, create a file <code>/etc/rsyslog.d/docker.conf</code>:</p>
<div class="highlight"><pre><span></span><code>local3.* /var/log/mailcow.log
&amp; stop
</code></pre></div>
<p>Restart rsyslog afterwards.</p>
<h4 id="via-daemonjson-globally">via daemon.json (globally)<a class="headerlink" href="#via-daemonjson-globally" title="Permanent link">&para;</a></h4> <h4 id="via-daemonjson-globally">via daemon.json (globally)<a class="headerlink" href="#via-daemonjson-globally" title="Permanent link">&para;</a></h4>
<p>If you want to <strong>change the logging driver globally</strong>, edit Dockers daemon configuration file <code>/etc/docker/daemon.json</code> and restart the Docker service:</p> <p>If you want to <strong>change the logging driver globally</strong>, edit Dockers daemon configuration file <code>/etc/docker/daemon.json</code> and restart the Docker service:</p>
<div class="highlight"><pre><span></span><code>{ <div class="highlight"><pre><span></span><code>{
@ -2563,7 +2592,7 @@ local3.* /var/log/mailcow.logs
<small> <small>
Last update: Last update:
<span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_datetime">2022-05-24 08:11:00</span> <span class="git-revision-date-localized-plugin git-revision-date-localized-plugin-iso_datetime">2022-05-24 16:35:59</span>
</small> </small>

Dateidiff unterdrĂŒckt, weil mindestens eine Zeile zu lang ist

BinÀre Datei nicht angezeigt.