{"id":3816,"date":"2022-12-20T17:20:09","date_gmt":"2022-12-20T20:20:09","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/systemdjournalupload-service-man8\/"},"modified":"2022-12-20T17:20:09","modified_gmt":"2022-12-20T20:20:09","slug":"systemdjournalupload-service-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/systemdjournalupload-service-man8\/","title":{"rendered":"SYSTEMD&minus;JOURNAL&minus;UPLOAD.SERVICE (man8)"},"content":{"rendered":"<h1 align=\"center\">SYSTEMD\u2212JOURNAL\u2212UPLOAD.SERVICE<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#OPTIONS\">OPTIONS<\/a><br \/> <a href=\"#EXIT STATUS\">EXIT STATUS<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">systemd-journal-upload.service, systemd-journal-upload \u2212 Send journal messages over the network<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">systemd\u2212journal\u2212upload.service<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"89%\">\n<p style=\"margin-top: 1em\"><b>\/usr\/lib\/systemd\/systemd\u2212journal\u2212upload<\/b> [OPTIONS&#8230;] [\u2212u\/\u2212\u2212url=<i>URL<\/i>] [SOURCES&#8230;]<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>systemd\u2212journal\u2212upload<\/b> will upload journal entries to the URL specified with <b>\u2212\u2212url=<\/b>. This program reads journal entries from one or more journal files, similarly to <b>journalctl<\/b>(1). Unless limited by one of the options specified below, all journal entries accessible to the user the program is running as will be uploaded, and then the program will wait and send new entries as they become available.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">systemd\u2212journal\u2212upload.service is a system service that uses <b>systemd\u2212journal\u2212upload<\/b> to upload journal entries to a server. It uses the configuration in <b>journal-upload.conf<\/b>(5). At least the <i>URL=<\/i> option must be specified.<\/p>\n<h2>OPTIONS <a name=\"OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212u<\/b>, <b>\u2212\u2212url=[https:\/\/]<\/b><i>URL<\/i><b>[:<\/b><i>PORT<\/i><b>]<\/b>, <b>\u2212\u2212url=[http:\/\/]<\/b><i>URL<\/i><b>[:<\/b><i>PORT<\/i><b>]<\/b><\/p>\n<p style=\"margin-left:17%;\">Upload to the specified address. <i>URL<\/i> may specify either just the hostname or both the protocol and hostname. <b>https<\/b> is the default. The port number may be specified after a colon (&#8220;:&#8221;), otherwise <b>19532<\/b> will be used by default.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212\u2212system<\/b>, <b>\u2212\u2212user<\/b><\/p>\n<p style=\"margin-left:17%;\">Limit uploaded entries to entries from system services and the kernel, or to entries from services of current user. This has the same meaning as <b>\u2212\u2212system<\/b> and <b>\u2212\u2212user<\/b> options for <b>journalctl<\/b>(1). If neither is specified, all accessible entries are uploaded.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212m<\/b>, <b>\u2212\u2212merge<\/b><\/p>\n<p style=\"margin-left:17%;\">Upload entries interleaved from all available journals, including other machines. This has the same meaning as <b>\u2212\u2212merge<\/b> option for <b>journalctl<\/b>(1).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212D<\/b>, <b>\u2212\u2212directory=<\/b><i>DIR<\/i><\/p>\n<p style=\"margin-left:17%;\">Takes a directory path as argument. Upload entries from the specified journal directory <i>DIR<\/i> instead of the default runtime and system journal paths. This has the same meaning as <b>\u2212\u2212directory=<\/b> option for <b>journalctl<\/b>(1).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212\u2212file=<\/b><i>GLOB<\/i><\/p>\n<p style=\"margin-left:17%;\">Takes a file glob as an argument. Upload entries from the specified journal files matching <i>GLOB<\/i> instead of the default runtime and system journal paths. May be specified multiple times, in which case files will be suitably interleaved. This has the same meaning as <b>\u2212\u2212file=<\/b> option for <b>journalctl<\/b>(1).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212\u2212cursor=<\/b><\/p>\n<p style=\"margin-left:17%;\">Upload entries from the location in the journal specified by the passed cursor. This has the same meaning as <b>\u2212\u2212cursor=<\/b> option for <b>journalctl<\/b>(1).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212\u2212after\u2212cursor=<\/b><\/p>\n<p style=\"margin-left:17%;\">Upload entries from the location in the journal <i>after<\/i> the location specified by the this cursor. This has the same meaning as <b>\u2212\u2212after\u2212cursor=<\/b> option for <b>journalctl<\/b>(1).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212\u2212save\u2212state<\/b>[=<i>PATH<\/i>]<\/p>\n<p style=\"margin-left:17%;\">Upload entries from the location in the journal <i>after<\/i> the location specified by the cursor saved in file at <i>PATH<\/i> (\/var\/lib\/systemd\/journal\u2212upload\/state by default). After an entry is successfully uploaded, update this file with the cursor of that entry.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212\u2212follow<\/b>[=<i>BOOL<\/i>]<\/p>\n<p style=\"margin-left:17%;\">If set to yes, then <b>systemd\u2212journal\u2212upload<\/b> waits for input.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212\u2212key=<\/b><\/p>\n<p style=\"margin-left:17%;\">Takes a path to a SSL key file in PEM format, or <b>\u2212<\/b>. If <b>\u2212<\/b> is set, then client certificate authentication checking will be disabled. Defaults to \/etc\/ssl\/private\/journal\u2212upload.pem.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212\u2212cert=<\/b><\/p>\n<p style=\"margin-left:17%;\">Takes a path to a SSL certificate file in PEM format, or <b>\u2212<\/b>. If <b>\u2212<\/b> is set, then client certificate authentication checking will be disabled. Defaults to \/etc\/ssl\/certs\/journal\u2212upload.pem.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212\u2212trust=<\/b><\/p>\n<p style=\"margin-left:17%;\">Takes a path to a SSL CA certificate file in PEM format, or <b>\u2212<\/b>\/<b>all<\/b>. If <b>\u2212<\/b>\/<b>all<\/b> is set, then certificate checking will be disabled. Defaults to \/etc\/ssl\/ca\/trusted.pem.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212h<\/b>, <b>\u2212\u2212help<\/b><\/p>\n<p style=\"margin-left:17%;\">Print a short help text and exit.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>\u2212\u2212version<\/b><\/p>\n<p style=\"margin-left:17%;\">Print a short version string and exit.<\/p>\n<h2>EXIT STATUS <a name=\"EXIT STATUS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">On success, 0 is returned; otherwise, a non\u2212zero failure code is returned.<\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Example\u00a01.\u00a0Setting up certificates for authentication<\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Certificates signed by a trusted authority are used to verify that the server to which messages are uploaded is legitimate, and vice versa, that the client is trusted.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">A suitable set of certificates can be generated with <b>openssl<\/b>. Note, 2048 bits of key length is minimally recommended to use for security reasons:<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">openssl req \u2212newkey rsa:2048 \u2212days 3650 \u2212x509 \u2212nodes  <br \/> \u2212out ca.pem \u2212keyout ca.key \u2212subj &#8216;\/CN=Certificate authority\/&#8217;<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">cat >ca.conf <<EOF <br \/> [ ca ] <br \/> default_ca = this<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">[ this ] <br \/> new_certs_dir = . <br \/> certificate = ca.pem <br \/> database = .\/index <br \/> private_key = ca.key <br \/> serial = .\/serial <br \/> default_days = 3650 <br \/> default_md = default <br \/> policy = policy_anything<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">[ policy_anything ] <br \/> countryName = optional <br \/> stateOrProvinceName = optional <br \/> localityName = optional <br \/> organizationName = optional <br \/> organizationalUnitName = optional <br \/> commonName = supplied <br \/> emailAddress = optional <br \/> EOF<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">touch index <br \/> echo 0001 >serial<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">SERVER=server <br \/> CLIENT=client<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">openssl req \u2212newkey rsa:2048 \u2212nodes \u2212out $SERVER.csr \u2212keyout $SERVER.key \u2212subj &#8220;\/CN=$SERVER\/&#8221; <br \/> openssl ca \u2212batch \u2212config ca.conf \u2212notext \u2212in $SERVER.csr \u2212out $SERVER.pem<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">openssl req \u2212newkey rsa:2048 \u2212nodes \u2212out $CLIENT.csr \u2212keyout $CLIENT.key \u2212subj &#8220;\/CN=$CLIENT\/&#8221; <br \/> openssl ca \u2212batch \u2212config ca.conf \u2212notext \u2212in $CLIENT.csr \u2212out $CLIENT.pem<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Generated files ca.pem, server.pem, and server.key should be installed on server, and ca.pem, client.pem, and client.key on the client. The location of those files can be specified using <i>TrustedCertificateFile=<\/i>, <i>ServerCertificateFile=<\/i>, and <i>ServerKeyFile=<\/i> in \/etc\/systemd\/journal\u2212remote.conf and \/etc\/systemd\/journal\u2212upload.conf, respectively. The default locations can be queried by using <b>systemd\u2212journal\u2212remote \u2212\u2212help<\/b> and <b>systemd\u2212journal\u2212upload \u2212\u2212help<\/b>.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>journal-upload.conf<\/b>(5), <b>systemd-journal-remote.service<\/b>(8), <b>journalctl<\/b>(1), <b>systemd-journald.service<\/b>(8), <b>systemd-journal-gatewayd.service<\/b>(8)<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  systemd-journal-upload.service, systemd-journal-upload \u2212 Send journal messages over the network <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,4,913],"class_list":["post-3816","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-systemd-journal-upload"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3816","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3816"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3816\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}