I’m trying to locate the log file that is used when running metabase, but can’t seem to find it anywhere. I launch metabase via startup script which calls:
/usr/bin/java -Xms128m -Xmx2048m -jar /automation/metabase/metabase.jar
but alas, no log file can be found after this.
running the above on a command line has all the (i would imagine) log output come straight to the console.
i see in the code that the logfile should be created at:
but i’m not sure where logfile.path would point to. using lsof on the metabase process doesn’t show it have any open log files.
So, not sure where to look. Or if it’s even logging to one. Any help would be much appreciated.
(using .32.10 right now).
The log file should by default be in the same directory as JAR file, but perhaps the user running the command doesn’t have write access to the directory?
Otherwise you could setup a service and use syslog for redirection:
the user (metabase) is running it in a dir owned by metabase:
metabase 5865 1.7 7.0 5840272 1130828 ? Ssl Aug28 1:58 /usr/bin/java -Xms128m -Xmx2048m -jar /automation/metabase/metabase.jar
/metabase$ ls -la
drwxr-xr-x 3 metabase metabase 4096 Aug 28 23:14 .
drwxr-xr-x 3 root root 4096 Aug 13 00:55 …
-rw-r–r-- 1 metabase metabase 3252224 Aug 29 01:07 metabase.db.mv.db
-rw-r–r-- 1 metabase metabase 70970 Aug 13 01:02 metabase.db.trace.db
-rw-r–r-- 1 metabase metabase 180799247 Aug 13 00:48 metabase.jar
-rw------- 1 metabase metabase 729 Aug 13 00:56 nohup.out
drwxr-xr-x 2 metabase metabase 4096 Aug 22 17:50 plugins
I’m happy to send on the syslog part of metabase starting, but there isn’t anything in there that i can see where it attempts to open a logfie.
I’m sorry, I’ve been running too long as a service, so I forgot that the
logfile.path is defined by you, when running the java command. Try adding this to the command: