journal-remote: allow splitting incoming logs by source host

Previously existing scheme where the file name would be based on
the source was just too ugly and unpredicatable. Now there are
only two options:
  1. just one file (until rotation),
  2. one file per source host, using the hostname as filename part.
For the cases where the source is specified by the user, only
option one is allowed, and the full of the file must be specified.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2014-07-15 22:31:41 -04:00
parent 24739b7b75
commit 8201af08fa
10 changed files with 390 additions and 113 deletions
+14
View File
@@ -252,6 +252,20 @@ along with systemd; If not, see <http://www.gnu.org/licenses/>.
string and exit.</para></listitem>
</varlistentry>
<varlistentry>
<term><option>--split-mode</option></term>
<listitem><para>One of <constant>none</constant> or
<constant>host</constant>. For the first, only one output
journal file is used. For the latter, a separate output file
is used, based on the hostname of the other endpoint of a
connection.</para>
<para>In case of "active" sources, the output file name must
always be given explicitly and only <constant>none</constant>
is allowed.</para></listitem>
</varlistentry>
<varlistentry>
<term><option>--compress</option></term>
<term><option>--no-compress</option></term>