@@ -40,11 +40,11 @@ gitbase server --user-file /path/to/user-file.json -d /my/repositories/path
40
40
41
41
## Audit
42
42
43
- Gitbase offers audit traces on logs. Right now, we have three different kinds of traces : ` authentication ` , ` authorization ` and ` query `
43
+ Gitbase offers audit trails on logs. Right now, we have three different kinds of records : ` authentication ` , ` authorization ` and ` query `
44
44
45
45
### Authentication
46
46
47
- Trace triggered when a user is trying to connect to gitbase. It contains the following information:
47
+ Record triggered when a user is trying to connect to gitbase. It contains the following information:
48
48
49
49
- action: Always ` authentication ` .
50
50
- system: Always ` audit `
@@ -61,7 +61,7 @@ action=authentication address="127.0.0.1:41720" err="Access denied for user 'tes
61
61
62
62
### Authorization
63
63
64
- Trace triggered checking when a user is authorized to execute a specific valid query with their permissions. It contains the following information:
64
+ Record triggered checking when a user is authorized to execute a specific valid query with their permissions. It contains the following information:
65
65
66
66
- action: Always ` authorization ` .
67
67
- system: Always ` audit `
@@ -81,7 +81,7 @@ INFO[0007] audit trail action=authorization ad
81
81
82
82
### Query
83
83
84
- Trace triggered at the end of the executed query. It contains the following information:
84
+ Record triggered at the end of the executed query. It contains the following information:
85
85
86
86
- action: Always ` query ` .
87
87
- system: Always ` audit `
@@ -92,6 +92,7 @@ Trace triggered at the end of the executed query. It contains the following info
92
92
- pid: Pid returns the process ID associated with this context. It will change in subsequent queries sent using the same connection.
93
93
- query: Query that client is trying to execute.
94
94
- err: If ` success=false ` . Human readable error describing the problem.
95
+ - duration: Time that the query took to execute. If the format of the logs is ` JSON ` this duration unit is nanoseconds.
95
96
96
97
Examples:
97
98
0 commit comments