-
Logs are written to /var/log/syslog in Netatalk's debug mode. The average capacity is 5GB per hour.
|
Beta Was this translation helpful? Give feedback.
Replies: 18 comments
-
@hnagasawa To confirm that I understand correctly what you want to achieve: Log messages that match the condition in your filter.conf should be logged to file, and any other log messages should be dropped? Logged to syslog? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
@hnagasawa I see. If the filtering doesn't work right now, I think it's safe to say that it's either a bug, or a missing implementation (rsyslog API that needs to be called?) I will keep this ticket for future investigation into the rsyslog API. For now, what netatalk can offer is the "log level" setting in afp.conf where you can increase or decrease the loglevel per each logtype. Multiple loglevels can be defined with a comma separated list. https://netatalk.sourceforge.io/3.1/htmldocs/afp.conf.5.html
|
Beta Was this translation helpful? Give feedback.
-
Do you plan to reflect the investigation and fix results of this issue in next netatalk new version 3.20 or later ? |
Beta Was this translation helpful? Give feedback.
-
@hnagasawa As you certainly know, this project is volunteer driven, so I cannot guarantee anything. When I have some time later this month I plan to read up on rsyslogd APIs to understand what is needed. After that I should be able to say whether it’s feasible to modify the netatalk logger module without a complete rewrite. |
Beta Was this translation helpful? Give feedback.
-
@rdmark
I am waiting for your result. |
Beta Was this translation helpful? Give feedback.
-
@hnagasawa Thanks for waiting patiently. I was able to look closer at this issue today. The one potential error that I saw, is that rsyslogd threw a warning that the With this configuration:
I got this result:
Is this in line with your expectations? I referenced the official documentation for the syntax. https://www.rsyslog.com/doc/configuration/filters.html |
Beta Was this translation helpful? Give feedback.
-
I installed under RockyLinux 9.3. I will try. |
Beta Was this translation helpful? Give feedback.
-
I really hope that solves your problem! |
Beta Was this translation helpful? Give feedback.
-
Today, I installed Netatalk under RockyLinux Ver9.3 I have any questions. There was no /etc/rsyslog.d/10-netatalk.conf file in RockyLinux9.x.
Is "the & ~" a description in the netatalk source? Is it rsyslog? |
Beta Was this translation helpful? Give feedback.
-
You have to create this file.
The https://www.rsyslog.com/doc/compatibility/v7compatibility.html Now, I found an error in my example above. The correct syntax should be:
|
Beta Was this translation helpful? Give feedback.
-
@hnagasawa Were you able to run further tests on your RockyLinux system? I'm curious to hear if you are seeing a different behavior or not. |
Beta Was this translation helpful? Give feedback.
-
I created /etc/rsyslog.d/10-netatalk.conf . I restarted netatalk and rsyslog. |
Beta Was this translation helpful? Give feedback.
-
That’s odd. Can you please share exactly what is in your conf? You can also try the other types of rsyslogd syntax that is described in the documentation page above. There is a simpler declarative syntax that is less error prone than the expression syntax we’re using now. |
Beta Was this translation helpful? Give feedback.
-
[root@RockyLinux ~]# cat /etc/rsyslog.d/10-netatalk.conf What do I miss ? |
Beta Was this translation helpful? Give feedback.
-
@hnagasawa Can you share what your afp.conf looks like? Do you know for fact that you are getting log messages containing both "loading" and "uam"? |
Beta Was this translation helpful? Give feedback.
-
I unistalled and I reinstalled. Thank you for your support. |
Beta Was this translation helpful? Give feedback.
-
I'm relieved to hear that you resolved your issue! |
Beta Was this translation helpful? Give feedback.
@hnagasawa Thanks for waiting patiently. I was able to look closer at this issue today.
The one potential error that I saw, is that rsyslogd threw a warning that the
& ~
syntax is deprecated, and you should usestop
instead. But maybe you are using an older version of rsyslogd? I'm testing this on an Ubuntu 22.04 system.With this configuration:
I got this result:
I…