Hello
currently some Knime-Server-Logs are directed into /var/log/messages on the server.
These are messages like:
Apr 20 09:21:31 dcplnx99999999 sh[18844]: at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
Apr 20 09:21:31 dcplnx99999999 sh[18844]: at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
Apr 20 09:21:31 dcplnx99999999 sh[18844]: at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
Apr 20 09:21:31 dcplnx99999999 sh[18844]: at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
Apr 20 09:21:31 dcplnx99999999 sh[18844]: at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
Apr 20 09:21:31 dcplnx99999999 sh[18844]: at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
Exceptions resulting from Errors in Workflows.
These Messages from the knime-server (tomcat) and knime-executor should be written to separate files.
Since knime is installed on Red Hat 7.8. two .conf Files were written into the directory:
/etc/rsyslog.d
knime.conf_(existing configuration which writes into application.log , no problems with that________
if $msg contains ‘knime’ or $msg contains ‘KNIME’ or $msg contains ‘DevToolsActivePort’ or $msg contains ‘oracle.net.ns.NetException’ or $msg contains ‘java.sql.SQLException’ or $msg contains ‘java.sql.SQLRecoverableException’ then /var/log/application.log
& stop
I created:
knime-executor.conf______________________________________________
if $_SYSTEMD_UNIT contains ‘knime-executor’ then /var/log/knime-executor.log
& stop
knime-server.conf________________________________________________
if $_SYSTEMD_UNIT contains ‘knime-server’ then /var/log/knime-server.log
& stop
restartet rsyslog
The Logs in the directory
/var/log
knime-executor.log________________________________________________
Apr 21 12:45:46 dcplnx99999999 rootsh[07757]: root: 075: systemctl stop knime-executor
Apr 21 12:47:45 dcplnx99999999 rootsh[07757]: root: 082: systemctl status knime-executor
Apr 21 12:49:52 dcplnx99999999 rootsh[07757]: root: 086: journalctl -u knime-executor
Apr 21 12:50:27 dcplnx99999999 rootsh[07757]: root: 087: cat /var/log/knime-executor.log
Apr 21 16:18:17 dcplnx99999999 rootsh[04de4]: root: 048: nano knime-executor.conf
Apr 21 16:26:56 dcplnx99999999 rootsh[04de4]: root: 056: nano knime-executor.conf
Apr 21 16:31:12 dcplnx99999999 rootsh[04de4]: root: 061: journalctl -u knime-executor
Apr 21 16:33:49 dcplnx99999999 rootsh[04de4]: root: 063: journalctl -u knime-executor
knime-server.log__________________________________________________
Apr 21 12:48:16 dcplnx99999999 rootsh[07757]: root: 084: nano knime-server.conf
Apr 21 12:49:37 dcplnx99999999 rootsh[07757]: root: 085: najournalctl -u knime-server
Apr 21 14:33:25 dcplnx99999999 rootsh[04de4]: root: 000: nano /etc/rsyslog.d/knime-server.conf
Apr 21 16:30:44 dcplnx99999999 rootsh[04de4]: root: 060: journalctl -u knime-server
Apr 21 16:33:12 dcplnx99999999 rootsh[04de4]: root: 062: journalctl -u knime-server
This is a bit less, than I would expect;
with
journalctl -u knime-server
and
journalctl -u knime-executor
the log messages being still routed into /var/log/messages
I know this is more a Red Hat question, but maybe you have experienced this problem also
and have a solution.
About. the Fields , that rsyslog provides here some usefull hints.
Thanks in advance.
B.Kochs