-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for NFS-friendly log protocol. #1549
Conversation
1c7ce85
to
068d0a3
Compare
retest this please |
abc02a1
to
435d2fa
Compare
lib/events/doc.go
Outdated
|
||
The main log files are saved as: | ||
|
||
/var/lib/teleport/log/<aut-server-id>/<date>.log |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix the typo
lib/events/doc.go
Outdated
|
||
Server a1 will produce the following file: | ||
|
||
/var/lib/teleport/a1/s1.index |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
duplicate sentence
lib/events/doc.go
Outdated
{"file_name":"s1-3.events","type":"events","index":3} | ||
{"file_name":"s1-40.chunks","type":"chunks","offset":40} | ||
|
||
Events file /var/lib/teleport/a1/s1-4.events will contain: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a2
lib/events/auditlog.go
Outdated
|
||
// GetSessionChunk returns a reader which console and web clients request |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete this code
lib/events/auditlog.go
Outdated
@@ -451,6 +852,7 @@ func (l *AuditLog) findInFile(fn string, query url.Values) ([]EventFields, error | |||
} | |||
for i := range eventFilter { | |||
if ef.GetString(EventType) == eventFilter[i] { | |||
fmt.Printf("%v has matched %v in filter %v and event %v\n", ef.GetString(EventType), ef, eventFilter[i], eventFilter) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log.Debugf?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, debugging jenkins problems
retest this please |
4eb76fc
to
30a4974
Compare
* Session events are delivered in continuous batches in a guaranteed order with every event and print event ordered from session start. * Each auth server writes to a separate folder on disk to make sure that no two processes write to the same file at a time. * When retrieving sessions, auth servers fetch and merge results recorded by each auth server. * Migrations and compatibility modes are in place for older clients not aware of the new format, but compatibility mode is not NFS friendly. * On disk migrations are launched automatically during auth server upgrades.
Fixes #1549
Session events are delivered in continuous
batches in a guaranteed order with every event
and print event ordered from session start.
Each auth server writes to a separate folder
on disk to make sure that no two processes write
to the same file at a time.
When retrieving sessions, auth servers fetch
and merge results recorded by each auth server.
Migrations and compatibility modes are in place
for older clients not aware of the new format,
but compatibility mode is not NFS friendly.
On disk migrations are launched automatically
during auth server upgrades.