public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Jan Stancek <jstancek@redhat.com>
To: Jeffrey Bastian <jbastian@redhat.com>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH] syslog/syslog-lib.sh: support systemd journal
Date: Thu, 9 Jul 2015 02:59:58 -0400 (EDT)	[thread overview]
Message-ID: <904998018.14796051.1436425198776.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <20150708194114.GA20060@tarantula.localdomain>





----- Original Message -----
> From: "Jeffrey Bastian" <jbastian@redhat.com>
> To: ltp-list@lists.sourceforge.net
> Sent: Wednesday, 8 July, 2015 9:41:14 PM
> Subject: [LTP] [PATCH] syslog/syslog-lib.sh: support systemd journal
> 
> rsyslog needs to use the imjournal module to communicate with
> systemd-journald.

According to:
  https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/s1-interaction_of_rsyslog_and_journal.html

there are 2 ways rsyslog can get messages:
1) By default, rsyslogd uses the imjournal module as a default input mode for journal files.
2) As an alternative, configure rsyslogd to read from the socket provided by journal as an output for syslog-based applications. The path to the socket is /run/systemd/journal/syslog. 
   $SystemLogSocketName /run/systemd/journal/syslog

Is 2) no longer supported?

Regards,
Jan

> Copy the imjournal lines from the system's
> /etc/rsyslog.conf if they exist.
> 
> Signed-off-by: Jeffrey Bastian <jbastian@redhat.com>
> ---
>  testcases/kernel/syscalls/syslog/syslog-lib.sh | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/testcases/kernel/syscalls/syslog/syslog-lib.sh
> b/testcases/kernel/syscalls/syslog/syslog-lib.sh
> index ef33517aa92b..4a6514a3114e 100755
> --- a/testcases/kernel/syscalls/syslog/syslog-lib.sh
> +++ b/testcases/kernel/syscalls/syslog/syslog-lib.sh
> @@ -72,8 +72,10 @@ setup()
>  	elif [ "$SYSLOG_DAEMON" = "rsyslog" ]; then
>  		CONFIG_FILE="/etc/rsyslog.conf"
>  		log_socket=$(grep -ho "^\$SystemLogSocketName .*" -r /etc/rsyslog.conf
>  		/etc/rsyslog.d/ | head -1)
> +		systemd_journal=$(grep -hoi "^[^#].*imjournal.*" -r /etc/rsyslog.conf
> /etc/rsyslog.d/)
>  		RSYSLOG_CONFIG=$(cat <<EOF
>  \$ModLoad imuxsock.so
> +$systemd_journal
>  $log_socket
>  EOF
>  )
> --
> 1.9.4
> 
> ------------------------------------------------------------------------------
> Don't Limit Your Business. Reach for the Cloud.
> GigeNET's Cloud Solutions provide you with the tools and support that
> you need to offload your IT needs and focus on growing your business.
> Configured For All Businesses. Start Your Cloud Today.
> https://www.gigenetcloud.com/
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list
> 

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  reply	other threads:[~2015-07-09  7:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-08 19:41 [LTP] [PATCH] syslog/syslog-lib.sh: support systemd journal Jeffrey Bastian
2015-07-09  6:59 ` Jan Stancek [this message]
2015-07-09  8:19   ` Jan Stancek
2015-07-09 12:45     ` Jeffrey Bastian
2015-07-09 13:39       ` Jan Stancek
2015-07-09 14:37         ` Jeffrey Bastian
2015-07-09 14:46           ` Jan Stancek
2015-07-09 16:33             ` Jeffrey Bastian
2015-07-09 16:49               ` Jan Stancek
2015-07-09 22:16                 ` [LTP] [PATCH v3] " Jeffrey Bastian
2015-07-13 11:43                   ` Jan Stancek
2015-07-16  7:01                     ` Jan Stancek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=904998018.14796051.1436425198776.JavaMail.zimbra@redhat.com \
    --to=jstancek@redhat.com \
    --cc=jbastian@redhat.com \
    --cc=ltp-list@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox