Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions providers/elasticsearch/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,15 @@ config:
type: string
example: module.callable
default: ""
max_lines_per_page:
description: |
The Page size of logs to retrieve from elasticsearch using the ElasticsearchTaskHandler.
If this is set too low, this can cause log read queries to become very slow.
This is limited on the server side (default limit of 10,000).
version_added: 6.4.4
type: string
example: ~
default: "1000"
elasticsearch_configs:
description: ~
options:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,13 @@ def get_provider_info():
"example": "module.callable",
"default": "",
},
"max_lines_per_page": {
"description": "The Page size of logs to retrieve from elasticsearch using the ElasticsearchTaskHandler.\nIf this is set too low, this can cause log read queries to become very slow.\nThis is limited on the server side (default limit of 10,000).\n",
"version_added": "6.4.4",
"type": "string",
"example": None,
"default": "1000",
},
},
},
"elasticsearch_configs": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class ElasticsearchTaskHandler(FileTaskHandler, ExternalLoggingMixin, LoggingMix
"""

PAGE = 0
MAX_LINE_PER_PAGE = 1000
MAX_LINE_PER_PAGE = conf.getint("elasticsearch", "max_lines_per_page", fallback=1000)
LOG_NAME = "Elasticsearch"

trigger_should_wrap = True
Expand Down