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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user