diff --git a/x-pack/plugins/security_solution/server/lib/telemetry/sender.ts b/x-pack/plugins/security_solution/server/lib/telemetry/sender.ts index 848f66c3aaf0a..39af813916cdd 100644 --- a/x-pack/plugins/security_solution/server/lib/telemetry/sender.ts +++ b/x-pack/plugins/security_solution/server/lib/telemetry/sender.ts @@ -409,7 +409,7 @@ export class TelemetryEventsSender implements ITelemetryEventsSender { counterType: 'docs_sent', incrementBy: events.length, }); - tlog(this.logger, `Events sent!. Response: ${resp.status} ${JSON.stringify(resp.data)}`); + tlog(this.logger, `Events sent!. Response: ${resp.status}`); } catch (err) { tlog(this.logger, `Error sending events: ${err}`); const errorStatus = err?.response?.status; diff --git a/x-pack/plugins/security_solution/server/lib/telemetry/tasks/endpoint.ts b/x-pack/plugins/security_solution/server/lib/telemetry/tasks/endpoint.ts index d3c40b29e218f..2c5eabe612c09 100644 --- a/x-pack/plugins/security_solution/server/lib/telemetry/tasks/endpoint.ts +++ b/x-pack/plugins/security_solution/server/lib/telemetry/tasks/endpoint.ts @@ -167,12 +167,10 @@ export function createTelemetryEndpointTaskConfig(maxTelemetryBatch: number) { policyInfo !== undefined && !endpointPolicyCache.has(policyInfo) ) { - tlog(logger, `policy info exists as ${policyInfo}`); const agentPolicy = await receiver.fetchPolicyConfigs(policyInfo); const packagePolicies = agentPolicy?.package_policies; if (packagePolicies !== undefined && isPackagePolicyList(packagePolicies)) { - tlog(logger, `package policy exists as ${JSON.stringify(packagePolicies)}`); packagePolicies .map((pPolicy) => pPolicy as PolicyData) .forEach((pPolicy) => { @@ -221,11 +219,6 @@ export function createTelemetryEndpointTaskConfig(maxTelemetryBatch: number) { ) : new Map(); - tlog( - logger, - `policy responses exists as ${JSON.stringify(Object.fromEntries(policyResponses))}` - ); - /** STAGE 4 - Fetch Endpoint Agent Metadata * * Reads Endpoint Agent metadata out of the `.ds-metrics-endpoint.metadata` data stream @@ -254,10 +247,6 @@ export function createTelemetryEndpointTaskConfig(maxTelemetryBatch: number) { }, new Map() ); - tlog( - logger, - `endpoint metadata exists as ${JSON.stringify(Object.fromEntries(endpointMetadata))}` - ); /** STAGE 5 - Create the telemetry log records * * Iterates through the endpoint metrics documents at STAGE 1 and joins them together diff --git a/x-pack/plugins/security_solution/server/lib/telemetry/tasks/security_lists.ts b/x-pack/plugins/security_solution/server/lib/telemetry/tasks/security_lists.ts index 68a6fb643e1ba..04312e8843e28 100644 --- a/x-pack/plugins/security_solution/server/lib/telemetry/tasks/security_lists.ts +++ b/x-pack/plugins/security_solution/server/lib/telemetry/tasks/security_lists.ts @@ -21,7 +21,6 @@ import type { ESClusterInfo, ESLicense } from '../types'; import { batchTelemetryRecords, templateExceptionList, - tlog, createTaskMetric, formatValueListMetaData, } from '../helpers'; @@ -72,7 +71,6 @@ export function createTelemetrySecurityListTaskConfig(maxTelemetryBatch: number) licenseInfo, LIST_TRUSTED_APPLICATION ); - tlog(logger, `Trusted Apps: ${trustedAppsJson}`); count += trustedAppsJson.length; const batches = batchTelemetryRecords(trustedAppsJson, maxTelemetryBatch); @@ -91,7 +89,6 @@ export function createTelemetrySecurityListTaskConfig(maxTelemetryBatch: number) licenseInfo, LIST_ENDPOINT_EXCEPTION ); - tlog(logger, `EP Exceptions: ${epExceptionsJson}`); count += epExceptionsJson.length; const batches = batchTelemetryRecords(epExceptionsJson, maxTelemetryBatch); @@ -110,7 +107,6 @@ export function createTelemetrySecurityListTaskConfig(maxTelemetryBatch: number) licenseInfo, LIST_ENDPOINT_EVENT_FILTER ); - tlog(logger, `EP Event Filters: ${epFiltersJson}`); count += epFiltersJson.length; const batches = batchTelemetryRecords(epFiltersJson, maxTelemetryBatch); @@ -128,7 +124,6 @@ export function createTelemetrySecurityListTaskConfig(maxTelemetryBatch: number) clusterInfo, licenseInfo ); - tlog(logger, `Value List Meta Data: ${JSON.stringify(valueListMetaData)}`); if (valueListMetaData?.total_list_count) { await sender.sendOnDemand(TELEMETRY_CHANNEL_LISTS, [valueListMetaData]); } diff --git a/x-pack/plugins/security_solution/server/lib/telemetry/tasks/timelines.ts b/x-pack/plugins/security_solution/server/lib/telemetry/tasks/timelines.ts index b6f7a4426f0c6..bd50ffcd92817 100644 --- a/x-pack/plugins/security_solution/server/lib/telemetry/tasks/timelines.ts +++ b/x-pack/plugins/security_solution/server/lib/telemetry/tasks/timelines.ts @@ -115,7 +115,6 @@ export function createTelemetryTimelineTaskConfig() { // Fetch event lineage const timelineEvents = await receiver.fetchTimelineEvents(nodeIds); - tlog(logger, `Timeline Events: ${JSON.stringify(timelineEvents)}`); const eventsStore = new Map(); for (const event of timelineEvents.hits.hits) { const doc = event._source;