Skip to content

Commit d428346

Browse files
authored
CloudWatch Logs: Hide internal logs field (#299)
1 parent 659edaa commit d428346

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

pkg/cloudwatch/log_query.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ func logsResultsToDataframes(response *cloudwatchlogs.GetQueryResultsOutput, gro
109109
newFields[len(newFields)-1].SetConfig(
110110
&data.FieldConfig{
111111
Custom: map[string]any{
112-
"hidden": true,
112+
"hidden": true,
113+
"hideFrom": map[string]any{"viz": true},
113114
},
114115
},
115116
)

pkg/cloudwatch/log_query_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ func TestLogsResultsToDataframes(t *testing.T) {
169169
})
170170
hiddenLogStreamField.SetConfig(&data.FieldConfig{
171171
Custom: map[string]any{
172-
"hidden": true,
172+
"hidden": true,
173+
"hideFrom": map[string]any{"viz": true},
173174
},
174175
})
175176

@@ -180,7 +181,8 @@ func TestLogsResultsToDataframes(t *testing.T) {
180181
})
181182
hiddenLogField.SetConfig(&data.FieldConfig{
182183
Custom: map[string]any{
183-
"hidden": true,
184+
"hidden": true,
185+
"hideFrom": map[string]any{"viz": true},
184186
},
185187
})
186188

0 commit comments

Comments
 (0)