diff --git a/x-pack/plugins/osquery/common/constants.ts b/x-pack/plugins/osquery/common/constants.ts index b45c1cb082d03..29f3bf45e7398 100644 --- a/x-pack/plugins/osquery/common/constants.ts +++ b/x-pack/plugins/osquery/common/constants.ts @@ -32,5 +32,5 @@ export const API_VERSIONS = { export enum QUERY_TIMEOUT { DEFAULT = 60, // 60 seconds - MAX = 60 * 15, + MAX = 60 * 60 * 24, // 24 hours } diff --git a/x-pack/plugins/osquery/cypress/e2e/all/live_query.cy.ts b/x-pack/plugins/osquery/cypress/e2e/all/live_query.cy.ts index 6f551ad39b196..07599d064d649 100644 --- a/x-pack/plugins/osquery/cypress/e2e/all/live_query.cy.ts +++ b/x-pack/plugins/osquery/cypress/e2e/all/live_query.cy.ts @@ -37,12 +37,12 @@ describe('ALL - Live Query', { tags: ['@ess', '@serverless'] }, () => { cy.contains('Query is a required field').should('not.exist'); checkResults(); getAdvancedButton().click(); - fillInQueryTimeout('910'); + fillInQueryTimeout('86410'); submitQuery(); - cy.contains('The timeout value must be 900 seconds or or lower.'); + cy.contains('The timeout value must be 86400 seconds or or lower.'); fillInQueryTimeout('890'); submitQuery(); - cy.contains('The timeout value must be 900 seconds or or lower.').should('not.exist'); + cy.contains('The timeout value must be 86400 seconds or or lower.').should('not.exist'); typeInOsqueryFieldInput('days{downArrow}{enter}'); submitQuery(); cy.contains('ECS field is required.');