Re: [systemd-devel] Splitting large message written to stdout, explanation?

2023-05-22 Thread Virendra Negi
Thanks, Lennart. On Mon, May 22, 2023 at 4:28 PM Lennart Poettering wrote: > On Mo, 22.05.23 15:58, Virendra Negi (virendra.n...@sugarboxnetworks.com) > wrote: > > > I'm not sure how Systemd was handling this, but my assumption is that > > systemd redirects STDOUT , STDERR to /*dev/log *and

Re: [systemd-devel] Splitting large message written to stdout, explanation?

2023-05-22 Thread Lennart Poettering
On Mo, 22.05.23 15:58, Virendra Negi (virendra.n...@sugarboxnetworks.com) wrote: > I'm not sure how Systemd was handling this, but my assumption is that > systemd redirects STDOUT , STDERR to /*dev/log *and then systemd would > pick that up and write to the respective file based. Given I found

Re: [systemd-devel] Splitting large message written to stdout, explanation?

2023-05-22 Thread Virendra Negi
@Lennart Earlier our unit file had the following definition *StandardOutput=syslogStandardError=syslogSyslogIdentifier=sbagent* I'm not sure how Systemd was handling this, but my assumption is that systemd redirects STDOUT , STDERR to /*dev/log *and then systemd would pick that up and write

Re: [systemd-devel] Splitting large message written to stdout, explanation?

2023-05-22 Thread Lennart Poettering
On Mo, 22.05.23 09:31, Virendra Negi (virendra.n...@sugarboxnetworks.com) wrote: > Ok, I think I get a sense of who is doing what which results in the Large > Message getting Split as per my understanding it's *LINE_MAX* value in the > `journalctl` conf that causes the Large message to get split.

Re: [systemd-devel] Splitting large message written to stdout, explanation?

2023-05-22 Thread Lennart Poettering
On So, 21.05.23 15:32, Virendra Negi (virendra.n...@sugarboxnetworks.com) wrote: > It's been over a week I have been chasing this > https://github.com/rsyslog/rsyslog/issues/5137 > > I was unsure how to ensure that the systemd (since I was getting nowhere > with rsyslog) split the message

Re: [systemd-devel] Splitting large message written to stdout, explanation?

2023-05-21 Thread Virendra Negi
Ok, I think I get a sense of who is doing what which results in the Large Message getting Split as per my understanding it's *LINE_MAX* value in the `journalctl` conf that causes the Large message to get split. The default value is 48K and compared to the size of the split message and it comes

Re: [systemd-devel] Splitting large message written to stdout, explanation?

2023-05-21 Thread Virendra Negi
> Syslog was never really intended for large size messages. It is not Windows event log. > If you are sending large complex things then using dbus to communicate directly > is a better option. Now I'm bit prepexled uptil now I was under the impression that the large message is getting split as a

Re: [systemd-devel] Splitting large message written to stdout, explanation?

2023-05-21 Thread Michael Biebl
Am So., 21. Mai 2023 um 18:26 Uhr schrieb Stephen Hemminger : > Syslog was never really intended for large size messages. It is not Windows > event log. > If you are sending large complex things then using dbus to communicate > directly > is a better option. dbus is not a suitable protocol for

Re: [systemd-devel] Splitting large message written to stdout, explanation?

2023-05-21 Thread Stephen Hemminger
On Sun, 21 May 2023 15:32:14 +0530 Virendra Negi wrote: > It's been over a week I have been chasing this > https://github.com/rsyslog/rsyslog/issues/5137 > > I was unsure how to ensure that the systemd (since I was getting nowhere > with rsyslog) split the message instead of the application

[systemd-devel] Splitting large message written to stdout, explanation?

2023-05-21 Thread Virendra Negi
It's been over a week I have been chasing this https://github.com/rsyslog/rsyslog/issues/5137 I was unsure how to ensure that the systemd (since I was getting nowhere with rsyslog) split the message instead of the application program doing this. Apparently, today I just removed the following