1GANESHA-LOG-CONFIG(8) NFS-Ganesha GANESHA-LOG-CONFIG(8)
2
3
4
6 ganesha-log-config - NFS Ganesha Log Configuration File
7
9 /etc/ganesha/ganesha.conf
10
11
13 NFS-Ganesha reads the configuration data from: | /etc/ganesha/gane‐
14 sha.conf
15
16 This file lists NFS-Ganesha Log config options.
17
18 These options may be dynamically updated by issuing a SIGHUP to the
19 ganesha.nfsd process.
20
21 LOG {}
22 Default_log_level(token,default EVENT)
23 If this option is NOT set, the fall back log level will be that
24 specified in the -N option on the command line if that is set, oth‐
25 erwise the fallback level is EVENT.
26 If a SIGHUP is issued, any components not specified in LOG {
27 COMPONENTS {} } will be reset to this value.
28
29 The log levels are:
30
31 NULL, FATAL, MAJ, CRIT, WARN, EVENT, INFO, DEBUG, MID_DEBUG, M_DBG,
32 FULL_DEBUG, F_DBG
33
34 RPC_Debug_Flags(uint32, range 0 to UINT32_MAX, default 7)
35 Debug flags for TIRPC (default 7 matches log level default
36 EVENT).
37
38 These flags are only used if the TIRPC component is set to DEBUG
39
40 Display_UTC_Timestamp(bool, default false)
41 Flag to enable displaying UTC date/time in log messages instead
42 of localtime.
43
44 LOG { COMPONENTS {} }
45 Default_log_level(token,default EVENT)
46
47 These entries are of the form:
48 COMPONENT = LEVEL;
49
50 The components are:
51 ALL, LOG, MEMLEAKS, FSAL, NFSPROTO, NFS_V4, EXPORT, FILE‐
52 HANDLE, DISPATCH, MDCACHE, MDCACHE_LRU, HASHTABLE,
53 HASHTABLE_CACHE, DUPREQ, INIT, MAIN, IDMAPPER, NFS_READ‐
54 DIR, NFS_V4_LOCK, CONFIG, CLIENTID, SESSIONS, PNFS,
55 RW_LOCK, NLM, RPC, TIRPC, NFS_CB, THREAD, NFS_V4_ACL,
56 STATE, 9P, 9P_DISPATCH, FSAL_UP, DBUS, NFS_MSK
57
58 Some synonyms are:
59 FH = FILEHANDLE HT = HASHTABLE CACHE_INODE_LRU = MDC‐
60 AHCE_LRU CACHE_INODE = MDCACHE INODE_LRU = MDCAHCE_LRU
61 INODE = MDCACHE DISP = DISPATCH LEAKS = MEMLEAKS NFS3 =
62 NFSPROTO NFS4 = NFS_V4 HT_CACHE = HASHTABLE_CACHE
63 NFS_STARTUP = INIT NFS4_LOCK = NFS_V4_LOCK NFS4_ACL =
64 NFS_V4_ACL 9P_DISP = 9P_DISPATCH
65
66 The log levels are:
67 NULL, FATAL, MAJ, CRIT, WARN, EVENT, INFO, DEBUG, MID_DE‐
68 BUG, M_DBG, FULL_DEBUG, F_DBG
69
70 default none
71
72 ALL is a special component that when set, sets all components to
73 the specified value, overriding any that are explicitly set.
74 Note that if ALL is then removed from the config and SIGHUP is
75 issued, all components will revert to what is explicitly set, or
76 Default_Log_Level if that is specified, or the original log
77 level from the -N command line option if that was set, or the
78 code default of EVENT.
79
80 TIRPC is a special component that also sets the active RPC_De‐
81 bug_Flags. If the level for TIRPC is DEBUG or MID_DEBUG, the
82 custom RPC_Debug_Flags set by that parameter will be used, oth‐
83 erwise flags will depend on the level the TIRPC component is set
84 to:
85 NULL or FATAL: 0
86
87 CRIT or MAJ: TIRPC_DEBUG_FLAG_ERROR
88
89 WARN: TIRPC_DEBUG_FLAG_ERROR | TIRPC_DEBUG_FLAG_WARN
90
91 EVENT or INFO: TIRPC_DEBUG_FLAG_ERROR | TIRPC_DEBUG_FLAG_WARN
92 | TIRPC_DEBUG_FLAG_EVENT
93
94 DEBUG or MID_DEBUG: RPC_Debug_Flags
95
96 FULL_DEBUG: 0xffffffff
97
98 LOG { FACILITY {} }
99 This block may be repeated to configure multiple log facilities.
100
101 name(string, no default)
102
103 destination(string, no default, must be supplied)
104
105 max_level(token,default FULL_DEBUG)
106 The log levels are:
107 NULL, FATAL, MAJ, CRIT, WARN, EVENT, INFO, DEBUG, MID_DEBUG,
108 M_DBG, FULL_DEBUG, F_DBG
109
110 headers(token, values [none, component, all], default all)
111
112 enable(token, values [idle, active, default], default idle)
113
114 LOG { FORMAT {} }
115 date_format(enum,default ganesha)
116
117 Possible values:
118 ganesha, true, local, 8601, ISO-8601, ISO 8601, ISO, sys‐
119 log, syslog_usec, false, none, user_defined
120
121 time_format(enum,default ganesha)
122
123 Possible values:
124 ganesha, true, local, 8601, ISO-8601, ISO 8601, ISO, sys‐
125 log, syslog_usec, false, none, user_defined
126
127 user_date_format(string, no default)
128
129 user_time_format(string, no default)
130
131 EPOCH(bool, default true)
132
133 CLIENTIP(bool, default false)
134
135 HOSTNAME(bool, default true)
136
137 PROGNAME(bool, default true)
138
139 PID(bool, default true)
140
141 THREAD_NAME(bool, default true)
142
143 FILE_NAME(bool, default true)
144
145 LINE_NUM(bool, default true)
146
147 FUNCTION_NAME(bool, default true)
148
149 COMPONENT(bool, default true)
150
151 LEVEL(bool, default true)
152
153 OP_ID(bool, default false)
154
156 ganesha-config(8)
157
158
159
160
161 Nov 03, 2023 GANESHA-LOG-CONFIG(8)