Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Maintain line breaks when searching in Logs Explorer #1294

Open
alex-stiff opened this issue Dec 11, 2023 · 0 comments
Open

[FEATURE] Maintain line breaks when searching in Logs Explorer #1294

alex-stiff opened this issue Dec 11, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@alex-stiff
Copy link

alex-stiff commented Dec 11, 2023

Is your feature request related to a problem?
When constructing a PPL query, it is often useful to split the query onto multiple lines to make it easier to visually parse. However, when searching with the "refresh" button, the newlines in the query search box are stripped.

What solution would you like?
It would be useful if the query new lines/whitespacing was respected, even if the actual search data sent to the Opensearch backend has the newlines removed.

Example
Compare the ease of reading:

index=my-index-* 
| where syslog.host = "srvr123" 
| where not match(syslog.message, 'Admin')
| where not match(syslog.message, 'Host')
| where not match(syslog.message, 'XML')
| where not match(syslog.message, 'iLO ')
| rename host.name as loghost
| rename syslog.host AS host
| rename syslog.tag AS tag
| rename syslog.pri AS priority
| fields @timestamp,loghost,host,tag,priority,message

Vs:

index=my-index-* | where syslog.host = "srvr123" | where not match(syslog.message, 'Admin')| where not atch(syslog.message, 'Host')| where not match(syslog.message, 'XML')| where not match(syslog.message, 'iLO ')| rename ost.name as loghost| rename syslog.host AS host| rename syslog.tag AS tag| rename syslog.pri AS priority| fields @timestamp,loghost,host,tag,priority,message
@alex-stiff alex-stiff added enhancement New feature or request untriaged labels Dec 11, 2023
@Swiddis Swiddis removed the untriaged label Mar 25, 2024
@paulstn paulstn self-assigned this Mar 26, 2024
RyanL1997 pushed a commit to RyanL1997/dashboards-observability that referenced this issue Apr 18, 2024
…thHeader (opensearch-project#1292) (opensearch-project#1294)

* Fix issue with jwt as url param after getAdditionalAuthHeader switched to async

Signed-off-by: Craig Perkins <cwperx@amazon.com>
Signed-off-by: Ryan Liang <jiallian@amazon.com>
Co-authored-by: Ryan Liang <jiallian@amazon.com>
(cherry picked from commit 385377cbcfdb9dece8892312799aab53ac98d297)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants