Stream: troubleshooting

Topic: logging requests


view this post on Zulip Bethany Seeger (Sep 06 2024 at 20:19):

Hello,
I'm trying to understand the level of logging using Payara. I'm new to using payara, but I've developed in Java using the Spring framework. I'm used to seeing every HTTP request in the log and I'm not seeing that level of logging here. I realize that has to do with configuration of logs, but if INFO is set, shouldn't we be seeing every request in the server.log? I'm trying to get a base line understanding of how logging works in this system and am not sure what to expect.

For example, I've used our test site many times over the last few days and there are no messages related to specific requests in the server.log. There are hardly any messages to start with.

I'm wondering if I'm either misunderstanding the level of logging to expect by default (assuming things are at an INFO level), or if we have some sort of misconfiguration.

Should I be seeing every HTTP request being logged?

Thanks!

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 06 2024 at 20:23):

Hi! Please try this:

asadmin get server.http-service.access-logging-enabled

asadmin set server.http-service.access-logging-enabled=true

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 06 2024 at 20:28):

It's surprising we don't have any docs on this. Please feel free to create an issue!

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 06 2024 at 20:28):

I see it mentioned in passing here: https://github.com/IQSS/dataverse/releases/tag/v6.0

view this post on Zulip Bethany Seeger (Sep 06 2024 at 20:28):

Hi Phil,
Thanks! That was set to false. I just set it to true and now an "access" directory shows up in the logs directory for that domain.

It's not actually logging anything, but that's a step closer. Is there a log level associated with this one?

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 06 2024 at 20:28):

And here: https://guides.dataverse.org/en/6.3/installation/config.html#recording-user-ip-addresses

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 06 2024 at 20:29):

Oh, hmm. Nothing? There's a bit of a delay.

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 06 2024 at 20:29):

server.http-service.access-log.write-interval-seconds

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 06 2024 at 20:29):

Maybe give it a minute.

view this post on Zulip Bethany Seeger (Sep 06 2024 at 20:30):

Ohhh, it's set to 300 seconds. That seems a bit long. Is that what folks typically set it to?

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 06 2024 at 20:30):

In addition to the server.log, which is mostly for errors, you might be interested in the actionlogrecord database table: https://guides.dataverse.org/en/6.3/admin/monitoring.html#actionlogrecord

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 06 2024 at 20:31):

Buh. I'm not sure if people use 300 seconds in production or not.

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 06 2024 at 20:31):

I assume the Payara folks have it set to that for a reason.

view this post on Zulip Bethany Seeger (Sep 06 2024 at 20:37):

I am starting to see log messages show up. Thanks for your help - I'd been a bit mystified. :) I'll check out the actionlogrecord.

Do you know if you have to explicitly enable the "logs/process-failures" logging? I am seeing the "logs/edit-drafts" directory with logs in it, but not the "logs/process-failures" one. (we are using 5.13, so there's the possibility it wasn't a feature then?)

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 06 2024 at 20:40):

Huh, I remember the "edit-drafts" one.

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 06 2024 at 20:40):

I'm not sure about the process failures. Is it in the guides somewhere?

view this post on Zulip Bethany Seeger (Sep 06 2024 at 20:45):

It's related to solr: https://guides.dataverse.org/en/6.3/admin/monitoring.html#solr-indexing-failures-logging

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 06 2024 at 20:50):

Hmm, it was added here: https://github.com/IQSS/dataverse/pull/5987/commits/4078c96953f77cd59c93a7291eb816c11bbf718c

view this post on Zulip Philip Durbin ๐Ÿš€ (Sep 06 2024 at 20:51):

My assumption is that you haven't had any indexing failures but if you do, that directory will be created.

view this post on Zulip Bethany Seeger (Sep 06 2024 at 20:57):

That makes sense. Thanks for looking into it.


Last updated: Oct 30 2025 at 06:21 UTC