Why do I have two stardog.log files?

Created by Steve Place, Modified on Thu, Nov 16, 2023 at 9:58 AM by Steve Place

If you've configured logging with your log4j2.xml file and are writing your logs to a directory other than STARDOG_HOME, you will still get a stardog.log file in your home directory. This is because all messages written to stdout are written to the stardog.log file in your home directory. In other words, there's no way to prevent this from happening.


This is usually not a problem, as the only things written to stdout are startup/shutdown messages and error messages. However, your home directory stardog.log file could start getting large if you have many error messages. If this happens, you have a few options:

  1. Find the root cause of the many errors you are receiving and get them to stop occurring.
  2. Delete your home directory stardog.log file occasionally (you can do this manually or with a cron job).

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article