Project

General

Profile

Actions

tickets #165102

closed

Reduce kanidm-unixd logging

Added by crameleon 3 months ago. Updated about 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
FreeIPA/Kanidm
Target version:
-
Start date:
2024-08-09
Due date:
% Done:

0%

Estimated time:

Description

The service prints lots of lines clogging the system journal with information which does not seem very interesting:

Aug 09 19:49:30 atlas2 kanidm_unixd[9782]: f821e4e1-bf24-458e-8153-90de4847e97d INFO     client_request [ 571µs | 100.00% ]
Aug 09 19:49:30 atlas2 kanidm_unixd[9782]: d9d3caf0-48f6-4a94-a7c2-1cfee3150d5a INFO     client_request [ 465µs | 100.00% ]
Aug 09 19:49:30 atlas2 kanidm_unixd[9782]: d810e23c-fad8-4abf-b9a0-113371df2b1b INFO     client_request [ 13.2ms | 100.00% ]
Aug 09 19:49:30 atlas2 kanidm_unixd[9782]: 038bf314-3d21-4dbf-b132-adb8cbaaa2bd INFO     client_request [ 110µs | 100.00% ]
Aug 09 19:49:30 atlas2 kanidm_unixd[9782]: 2fd6e11b-5895-44bd-9c1d-259adf347ac7 INFO     client_request [ 852µs | 100.00% ]
Aug 09 19:49:30 atlas2 kanidm_unixd[9782]: 965b25cf-25c7-4160-8561-686677f6feab INFO     client_request [ 844µs | 100.00% ]
Aug 09 19:49:30 atlas2 kanidm_unixd[9782]: 9a24a22b-83f1-407e-b0fa-b6bd476e319d INFO     client_request [ 813µs | 100.00% ]
Aug 09 19:49:30 atlas2 kanidm_unixd[9782]: 77397f5f-7377-42bd-809a-969c5c82d259 INFO     client_request [ 817µs | 100.00% ]
Aug 09 19:49:30 atlas2 kanidm_unixd[9782]: 02559b71-e677-4824-842a-6116743dcc48 INFO     client_request [ 566µs | 100.00% ]
Aug 09 19:49:30 atlas2 kanidm_unixd[9782]: 77983ab4-7e74-4e2b-a642-ddf868defd9d INFO     client_request [ 434µs | 100.00% ]
Aug 09 19:49:37 atlas2 kanidm_unixd[9782]: 8f0b66cf-fee7-4b14-a217-aa4a9ee9cd5a INFO     client_request [ 969µs | 100.00% ]
Aug 09 19:49:37 atlas2 kanidm_unixd[9782]: 127ff949-74f6-4edc-825f-4f82c7e74b97 INFO     client_request [ 475µs | 100.00% ]
Aug 09 19:49:37 atlas2 kanidm_unixd[9782]: c462ae44-a3bc-4faf-8aa8-ce7087937dff INFO     client_request [ 933µs | 100.00% ]
Aug 09 19:49:37 atlas2 kanidm_unixd[9782]: 47526832-3dcc-4b2e-b399-f131255d3d76 INFO     client_request [ 817µs | 100.00% ]
Aug 09 19:49:37 atlas2 kanidm_unixd[9782]: 2486e1eb-84d4-4226-9c28-67a4cf64f466 INFO     client_request [ 914µs | 100.00% ]
Aug 09 19:49:37 atlas2 kanidm_unixd[9782]: a9c0a40c-dc75-4141-9769-3771918271f3 INFO     client_request [ 796µs | 100.00% ]
Aug 09 19:49:37 atlas2 kanidm_unixd[9782]: 157f6ce2-7d30-41bc-8497-434214039b07 INFO     client_request [ 458µs | 100.00% ]
Aug 09 19:49:37 atlas2 kanidm_unixd[9782]: 5b1403f8-d4ba-4202-afc2-307027348437 INFO     client_request [ 458µs | 100.00% ]
Aug 09 19:49:37 atlas2 kanidm_unixd[9782]: 2616a2ae-5462-451c-8948-034cb7554871 INFO     client_request [ 458µs | 100.00% ]
Aug 09 19:49:37 atlas2 kanidm_unixd[9782]: 26a8ab8d-fd2f-4d0f-91b9-8bfeddcd19fe INFO     client_request [ 473µs | 100.00% ]
Aug 09 19:49:37 atlas2 kanidm_unixd[9782]: 2f2e9149-1326-4acb-9c26-fce3718c92dd INFO     client_request [ 907µs | 100.00% ]
Aug 09 19:49:37 atlas2 kanidm_unixd[9782]: 78cadeee-a559-4275-8b4c-b2a129e499bf INFO     client_request [ 815µs | 100.00% ]

Check if there is a level lower than INFO that could be set on all machines.

Actions #1

Updated by crameleon 3 months ago

  • Private changed from Yes to No
Actions #2

Updated by crameleon 3 months ago

I don't find any configuration option for it in https://kanidm.github.io/kanidm/stable/integrations/pam_and_nsswitch.html?highlight=kanidm-unixd#the-unix-daemon, and there does not seem to be an argument for the log level either (only a debug one to probably make it even more verbose):

# kanidm_unixd --help
Kanidm Unix daemon

Usage: kanidm_unixd [OPTIONS]

Options:
  -r, --skip-root-check                Allow running as root. Don't use this in production as it is risky! [env: KANIDM_SKIP_ROOT_CHECK=]
  -d, --debug                          Show extra debug information [env: KANIDM_DEBUG=]
  -t, --configtest                     Display the configuration and exit
  -u, --unixd-config <unixd-config>    Set the unixd config file path [env: KANIDM_UNIX_CONFIG=] [default: /etc/kanidm/unixd]
  -c, --client-config <client-config>  Set the client config file path [env: KANIDM_CLIENT_CONFIG=] [default: /etc/kanidm/config]
  -h, --help                           Print help
  -V, --version                        Print version
Actions #3

Updated by crameleon 3 months ago

  • Assignee set to firstyear

Hi @firstyear, any idea?

Actions #4

Updated by firstyear 3 months ago

Will patch and update today :)

Actions #5

Updated by firstyear 3 months ago

Fixed in 1.3.2, submitting to OBS now.

Actions #7

Updated by crameleon about 2 months ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF