Skip to content

Add option to disable source logging for search slow log  #22683

@animageofmine

Description

@animageofmine

Describe the feature:
Details in this thread: https://discuss.elastic.co/t/turn-off-source-for-slow-logs/71182

As far as I know, there is an option to disable source logging for indexing logs, however there is no way to disable source logging for search logs. We are right now logging indexing and search slow logs to fetch latency for both search and indexing queries.

Example
The following exists

index.indexing.slowlog.source: 0 OR
index.indexing.slowlog.source: false

but the following configuration does not exist

index.search.slowlog.source: 0 OR
index.search.slowlog.source: false

Is it straight forward to add this feature? I was looking at the code and though it seemed like a simple change, I wasn't sure because the code (IndexSettings) is referenced a lot of times. I am willing to work on the change though if someone can give me a quick starter.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions