Fuseki log files

112 views
Skip to first unread message

Uldis Bojars

unread,
Nov 17, 2021, 1:29:20 PM11/17/21
to Skosmos Users
Hi!

After installing Fuseki according to the Skosmos installation instructions [1] is there anything else that you need to do in order to enable logging to the /var/log/fuseki directory?

I've created /var/log/fuseki directory as instructed but it stays empty. Fuseki log messages appear in syslog instead.


Best regards,
Uldis Bojars

Osma Suominen

unread,
Dec 8, 2021, 9:52:38 AM12/8/21
to skosmo...@googlegroups.com
Hi Uldis!

You probably need to set up Fuseki logging using a log4j configuration
file. It's explained here:
https://jena.apache.org/documentation/fuseki2/fuseki-logging.html

I've included below a configuration file (log4j2.properties) for one of
our Fuseki installations that you can perhaps use as a starting point.
It sets up logging under /var/log/fuseki .

If you have a suggestion for how to fix this in the tutorial
installation with minimal effort, I'd be thankful ;)

Hope this helps,
Osma


:# Global logging settings
name = LoggingConfig
status = error
dest = err

property.logDir = /var/log/fuseki
property.pattern = [%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} -
%msg%n

# stdout logger
# appender.console.type = Console
# appender.console.name = stdout
# appender.console.layout.type = PatternLayout
# appender.console.layout.pattern = ${pattern}

logger.console.name = org.apache.jena.fuseki
logger.console.level = warn

# File logger
appender.file.type = File
appender.file.name = FusekiFile
appender.file.fileName = ${logDir}/fuseki.log
appender.file.layout.type = PatternLayout
appender.file.layout.pattern = ${pattern}


logger.file.name = org.apache.jena.fuseki.Fuseki
logger.file.level = info
logger.file.appenderRef.file.ref = FusekiFile


# Root logger
# rootLogger.level = warn
# rootLogger.appenderRef.stdout.ref = stdout

logger.fuseki-request.name =
org.apache.jena.fuseki.Request
logger.fuseki-request.additivity = false
logger.fuseki-request.level = OFF
logger.fuseki-request.appenderRef.file.ref = FusekiFile
> --
> You received this message because you are subscribed to the Google
> Groups "Skosmos Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to skosmos-user...@googlegroups.com
> <mailto:skosmos-user...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/skosmos-users/CAJjMrEPn9iymiZUn%2BgHF2_M9BmB55JMM9mDm-V-OZa%2BQ1Tt6AA%40mail.gmail.com
> <https://groups.google.com/d/msgid/skosmos-users/CAJjMrEPn9iymiZUn%2BgHF2_M9BmB55JMM9mDm-V-OZa%2BQ1Tt6AA%40mail.gmail.com?utm_medium=email&utm_source=footer>.

--
Osma Suominen
D.Sc. (Tech), Information Systems Specialist
National Library of Finland
P.O. Box 15 (Unioninkatu 36)
00014 HELSINGIN YLIOPISTO
Tel. +358 50 3199529
osma.s...@helsinki.fi
http://www.nationallibrary.fi

Uldis Bojars

unread,
Dec 14, 2023, 10:57:09 AM12/14/23
to Osma Suominen, skosmo...@googlegroups.com
Hi!

This is an old thread but I thought I'd share information about Fuseki logging in a Skosmos installation.

There are 2 different "log4j2.properties" files for Fuseki - one in /etc/fuseki and another in /opt/fuseki.

Turns out I was editing the wrong file (the one in /etc/fuseki) while the correct file was in /opt/fuseki.

If you edit the correct file, its changes get applied to Fuseki and you can make it log to a file, etc.

Best regards,
Uldis


To unsubscribe from this group and stop receiving emails from it, send an email to skosmos-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/skosmos-users/14b80911-e816-287d-ff25-b94ba566c7c3%40helsinki.fi.
Reply all
Reply to author
Forward
0 new messages