Skip to content

Commit 7314156

Browse files
steliosmavropaulinashakirova
authored andcommitted
[Security Solution] Enable ES query debug logging for large bundled package test (elastic#270397)
## Summary Enables `elasticsearch.query` debug logging in the FTR config for the large bundled package installation test. This adds visibility into the Elasticsearch API calls Kibana makes internally when installing a large prebuilt rules package, scoped only to this test's FTR config.
1 parent 86f8d8c commit 7314156

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

x-pack/solutions/security/test/security_solution_api_integration/test_suites/detections_response/rules_management/prebuilt_rules/common/configs/edge_cases/ess_air_gapped_with_bundled_large_package.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import type { PrebuiltRuleAsset } from '@kbn/security-solution-plugin/server/lib
1111
import type { FtrConfigProviderContext } from '@kbn/test';
1212
import { PREBUILT_RULES_PACKAGE_NAME } from '@kbn/security-solution-plugin/common/detection_engine/constants';
1313
import { generatePrebuiltRulesPackageZipFile } from '@kbn/security-solution-test-api-clients/prebuilt_rules_package_generation';
14+
import { LOGGING_CONFIG } from '../../../../configs/constants';
1415

1516
const BUNDLED_PACKAGE_DIR = `${os.tmpdir()}/mock_bundled_large_fleet_prebuilt_rules_package`;
1617

@@ -36,6 +37,10 @@ export default async function ({ readConfigFile }: FtrConfigProviderContext) {
3637
*/
3738
`--xpack.fleet.isAirGapped=true`,
3839
`--xpack.fleet.developer.bundledPackageLocation=${BUNDLED_PACKAGE_DIR}`,
40+
`--logging.loggers=${JSON.stringify([
41+
...LOGGING_CONFIG,
42+
{ name: 'elasticsearch.query', level: 'debug' },
43+
])}`,
3944
],
4045
},
4146
junit: {

0 commit comments

Comments
 (0)