You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changing the local file path to another directory (e.g. /var/lib/teleport/audit) requires audit_sessions_uri to also be set otherwise Teleport does not initialize/start.
What happened:
added the following configuration to teleport.yaml
teleport:
storage:
type: dir
audit_events_uri: ['file:///var/lib/teleport/audit']
What you expected to happen:
Teleport to start and Audit events get placed in new root directory
How to reproduce it (as minimally and precisely as possible):
add configuration above
Environment
Teleport version (use teleport version): 4.2.6
Tsh version (use tsh version): 4.2.6
OS (e.g. from /etc/os-release):
Teleport container image:
ran with audit_sessions_uri configured. looks as if file:// or stdout:// is only supported with dynamodb:// configured
ERROR REPORT:
Original Error: *trace.BadParameterError file:// or stdout:// log can not be used on it's own, can be only used in combination with external session logs, e.g. dynamodb://
Stack Trace:
/gopath/src/github.com/gravitational/teleport/lib/service/service.go:884 github.com/gravitational/teleport/lib/service.initExternalLog
/gopath/src/github.com/gravitational/teleport/lib/service/service.go:942 github.com/gravitational/teleport/lib/service.(*TeleportProcess).initAuthService
/gopath/src/github.com/gravitational/teleport/lib/service/service.go:648 github.com/gravitational/teleport/lib/service.NewTeleport
/gopath/src/github.com/gravitational/teleport/e/lib/pro/process.go:41 github.com/gravitational/teleport/e/lib/pro.NewTeleport
/gopath/src/github.com/gravitational/teleport/e/tool/teleport/main.go:35 main.run.func1
/gopath/src/github.com/gravitational/teleport/lib/service/service.go:401 github.com/gravitational/teleport/lib/service.Run
/gopath/src/github.com/gravitational/teleport/e/tool/teleport/main.go:43 main.run
/gopath/src/github.com/gravitational/teleport/e/tool/teleport/main.go:27 main.main
/opt/go/src/runtime/proc.go:212 runtime.main
/opt/go/src/runtime/asm_amd64.s:1358 runtime.goexit
User Message: file:// or stdout:// log can not be used on it's own, can be only used in combination with external session logs, e.g. dynamodb://, initialization failed
Description
Changing the local file path to another directory (e.g.
/var/lib/teleport/audit
) requiresaudit_sessions_uri
to also be set otherwise Teleport does not initialize/start.What happened:
added the following configuration to
teleport.yaml
What you expected to happen:
Teleport to start and Audit events get placed in new root directory
How to reproduce it (as minimally and precisely as possible):
add configuration above
Environment
teleport version
): 4.2.6tsh version
): 4.2.6/etc/os-release
):Teleport container image:
Kubernetes
Browser environment
Relevant Debug Logs If Applicable
tsh --debug
teleport --debug
The text was updated successfully, but these errors were encountered: