Skip to content

[FEATURE] logstable: add json export to the logs table#604

Merged
shahrokni merged 2 commits intomainfrom
feat/add_export_logst_table_json_export
Mar 16, 2026
Merged

[FEATURE] logstable: add json export to the logs table#604
shahrokni merged 2 commits intomainfrom
feat/add_export_logst_table_json_export

Conversation

@shahrokni
Copy link
Contributor

Closes perses/perses#3834

Description

This PR adds an export functionality to the logs table by which log entries are flattened and push into an array and can be saved as a JSON file.

The records should already sorted by the timestamp. Therefore, there is no need to sort them at this level.

Every record has the following structure,

export interface LogEntry {
    timestamp: number;
    line: string;
    labels: Labels;
}
image image

Screenshots

Checklist

  • Pull request has a descriptive title and context useful to a reviewer.
  • Pull request title follows the [<catalog_entry>] <commit message> naming convention using one of the
    following catalog_entry values: FEATURE, ENHANCEMENT, BUGFIX, BREAKINGCHANGE, DOC,IGNORE.
  • All commits have DCO signoffs.

UI Changes

  • Changes that impact the UI include screenshots and/or screencasts of the relevant changes.
  • Code follows the UI guidelines.

Signed-off-by: Mahmoud Shahrokni <seyedmahmoud.shahrokni@amadeus.com>
@shahrokni shahrokni marked this pull request as ready for review March 16, 2026 12:04
@shahrokni shahrokni requested a review from a team as a code owner March 16, 2026 12:04
@shahrokni shahrokni requested review from Gladorme and removed request for a team March 16, 2026 12:04
Signed-off-by: Mahmoud Shahrokni <seyedmahmoud.shahrokni@amadeus.com>
@shahrokni shahrokni added this pull request to the merge queue Mar 16, 2026
Merged via the queue into main with commit 2556afd Mar 16, 2026
16 checks passed
@shahrokni shahrokni deleted the feat/add_export_logst_table_json_export branch March 16, 2026 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LogTable: Add support to download logs in JSON format

2 participants