Prerequisites
Vaultwarden Support StringYour environment (Generated via diagnostics page)
Config & Details (Generated via diagnostics page)Show Config & DetailsConfig: {
"data_folder": "/var/lib/vaultwarden",
"database_url": "******:///******************************",
"icon_cache_folder": "/var/cache/vaultwarden/icon_cache",
"attachments_folder": "/var/lib/vaultwarden/attachments",
"sends_folder": "/var/lib/vaultwarden/sends",
"tmp_folder": "/tmp/vaultwarden",
"templates_folder": "/var/lib/vaultwarden/templates",
"rsa_key_filename": "/var/lib/vaultwarden/rsa_key",
"web_vault_folder": "/usr/share/webapps/vaultwarden-web",
"enable_websocket": true,
"push_enabled": true,
"push_relay_uri": "https://push.bitwarden.com",
"push_identity_uri": "https://identity.bitwarden.com",
"push_installation_id": "***",
"push_installation_key": "***",
"job_poll_interval_ms": 30000,
"send_purge_schedule": "0 5 * * * *",
"trash_purge_schedule": "0 5 0 * * *",
"incomplete_2fa_schedule": "30 * * * * *",
"emergency_notification_reminder_schedule": "0 3 * * * *",
"emergency_request_timeout_schedule": "0 7 * * * *",
"event_cleanup_schedule": "0 10 0 * * *",
"auth_request_purge_schedule": "30 * * * * *",
"duo_context_purge_schedule": "30 * * * * *",
"purge_incomplete_sso_auth": "0 20 0 * * *",
"domain": "*****://*****************************************",
"domain_set": true,
"domain_origin": "*****://*****************************",
"domain_path": "************",
"web_vault_enabled": true,
"sends_allowed": true,
"hibp_api_key": null,
"user_attachment_limit": null,
"org_attachment_limit": null,
"user_send_limit": null,
"trash_auto_delete_days": null,
"incomplete_2fa_time_limit": 3,
"disable_icon_download": false,
"signups_allowed": false,
"signups_verify": false,
"signups_verify_resend_time": 3600,
"signups_verify_resend_limit": 6,
"signups_domains_whitelist": "",
"org_events_enabled": false,
"org_creation_users": "",
"invitations_allowed": false,
"invitation_expiration_hours": 120,
"emergency_access_allowed": true,
"email_change_allowed": true,
"password_iterations": 600000,
"password_hints_allowed": true,
"show_password_hint": false,
"admin_token": "***",
"invitation_org_name": "Vaultwarden",
"events_days_retain": null,
"client_suppress_onboarding": false,
"ip_header": "X-Real-IP",
"_ip_header_enabled": true,
"ip_header_trusted_proxies": "local",
"icon_service": "internal",
"_icon_service_url": "",
"_icon_service_csp": "",
"icon_redirect_code": 302,
"icon_cache_ttl": 2592000,
"icon_cache_negttl": 259200,
"icon_download_timeout": 10,
"icon_blacklist_regex": null,
"icon_blacklist_non_global_ips": true,
"http_request_block_regex": null,
"http_request_block_non_global_ips": true,
"disable_2fa_remember": false,
"authenticator_disable_time_drift": false,
"experimental_client_feature_flags": "",
"require_device_email": false,
"reload_templates": false,
"extended_logging": true,
"log_timestamp_format": "%Y-%m-%d %H:%M:%S.%3f",
"use_syslog": true,
"log_file": null,
"log_level": "info",
"enable_db_wal": true,
"db_connection_retries": 15,
"database_timeout": 30,
"database_idle_timeout": 600,
"database_max_conns": 10,
"database_min_conns": 2,
"database_conn_init": "",
"disable_admin_token": false,
"allowed_iframe_ancestors": "",
"allowed_connect_src": "",
"login_ratelimit_seconds": 60,
"login_ratelimit_max_burst": 10,
"unauthenticated_ratelimit_seconds": 60,
"unauthenticated_ratelimit_max_burst": 50,
"admin_ratelimit_seconds": 300,
"admin_ratelimit_max_burst": 3,
"admin_session_lifetime": 20,
"org_groups_enabled": false,
"increase_note_size_limit": false,
"_max_note_size": 10000,
"enforce_single_org_with_reset_pw_policy": false,
"dns_prefer_ipv6": false,
"sso_enabled": false,
"sso_only": false,
"sso_signups_match_email": true,
"sso_allow_unknown_email_verification": false,
"sso_client_id": "",
"sso_client_secret": "***",
"sso_authority": "",
"sso_scopes": "email profile",
"sso_authorize_extra_params": "",
"sso_pkce": true,
"sso_audience_trusted": null,
"sso_callback_path": "*****://**********************************************************************",
"sso_master_password_policy": null,
"sso_auth_only_not_session": false,
"sso_client_cache_expiration": 0,
"sso_debug_tokens": false,
"_enable_yubico": true,
"yubico_client_id": null,
"yubico_secret_key": null,
"yubico_server": null,
"_enable_duo": true,
"duo_use_iframe": false,
"duo_ikey": null,
"duo_skey": null,
"duo_host": null,
"_duo_akey": null,
"_enable_smtp": true,
"use_sendmail": true,
"sendmail_command": null,
"smtp_host": null,
"smtp_ssl": null,
"smtp_explicit_tls": null,
"smtp_security": "starttls",
"smtp_port": 587,
"smtp_from": "****************************************",
"smtp_from_name": "***********",
"smtp_username": null,
"smtp_password": null,
"smtp_auth_mechanism": null,
"smtp_timeout": 15,
"helo_name": null,
"smtp_embed_images": true,
"_smtp_img_src": "***:",
"smtp_debug": false,
"smtp_accept_invalid_certs": false,
"smtp_accept_invalid_hostnames": false,
"_enable_email_2fa": true,
"email_token_size": 6,
"email_expiration_time": 600,
"email_attempts_limit": 3,
"email_2fa_enforce_on_verified_invite": false,
"email_2fa_auto_fallback": false
}Vaultwarden Build Version1.37.2 Deployment methodOS Package (apt, yum/dnf, pacman, apk, nix, ...) Custom deployment methodGentoo package + OpenRC service Reverse Proxynginx 1.31.3 Host/Server Operating SystemLinux Operating System VersionGentoo Linux 2.18 ClientsWeb Vault Client VersionN/A Steps To Reproduce
The syslog crate claims it's because
That issue is closed, but IIUC the offset has to be read "early" (before spawning new threads, etc.). The syslog crate reads the offset at every log call, so probably won't fit that mold any time soon. I'm not sure if there are other implementations available that don't have this issue or what a better solution would be (short of finagling the syslog crate into working), so /shrug Expected ResultIt would sure be nice if the syslog entries were all in the same time zone ;) Actual ResultVaultWarden's log entries come out in the wrong time zone relative to other entries. (Logs below are an example, with nearby logs for comparison.) LogsScreenshots or VideosNo response Additional ContextNo response |
Replies: 1 comment 8 replies
|
As far as i know you do not provide syslog with a custom date/time. Syslog determines the date/time based upon it's own settings and what the host has configured. If you want Vaultwarden to output the date/time in something different, then set the correct |
Thanks. It seems that not setting any log outputs (file or syslog) and configuring OpenRC with
will output to syslog in a "normal" way, which also means timestamps are set correctly.