Skip to content
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

Augment session events with cluster name #4994

Merged
merged 5 commits into from Dec 8, 2020

Conversation

a-palchikov
Copy link
Contributor

This PR augments session events with a cluster name.

Fixes #3751.

lib/events/events.proto Outdated Show resolved Hide resolved
@@ -61,6 +61,9 @@ message ServerMetadata {
// session occurred on.
map<string, string> ServerLabels = 5
[ (gogoproto.nullable) = false, (gogoproto.jsontag) = "server_labels,omitempty" ];

// ClusterName identifies the originating teleport cluster
string ClusterName = 6 [ (gogoproto.jsontag) = "cluster_name" ];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be in just Metadata?
aren't all events cluster-specific?

lib/srv/exec.go Outdated
@@ -60,6 +60,8 @@ type ExecResult struct {

// Exec executes an "exec" request.
type Exec interface {
fmt.Stringer
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to add it in the interface
as long as remoteExec implements fmt.Stringer, printing it with %v should pick it up

@a-palchikov a-palchikov merged commit 673c290 into master Dec 8, 2020
@a-palchikov a-palchikov deleted the dmitri/3751-cluster-name branch December 8, 2020 12:33
@benarent
Copy link
Contributor

We've a customer that's current aggregating all logs into Splunk for SIEM usage. Would we be able to backport this into 5.1

@a-palchikov
Copy link
Contributor Author

@benarent Sure I can submit a backport.

a-palchikov added a commit that referenced this pull request Jan 12, 2021
Fix local etcd backend tests (backport of #4986).
a-palchikov added a commit that referenced this pull request Jan 12, 2021
Augment session events with a cluster name (backport of #4994).
Fix local etcd backend tests (backport of #4986).
@russjones russjones mentioned this pull request Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide Cluster Context in logs
5 participants