Skip to content

Append timestamp to downloaded log filenames #1884

Description

@shurkanTwo

What would you like to be added?

When downloading logs in Freelens, the generated filename should include a timestamp to make each downloaded file unique and easier to identify later.

Currently, downloaded log files can have generic or repeated names, which makes it easy to overwrite files or lose track of when a specific log export was created.

Expected behavior

When a user downloads logs, Freelens should append a timestamp to the filename.

Example:

pod-name-container-name-logs-2026-05-21T14-32-10.log

Benefits

Prevents accidental overwrites when downloading logs multiple times.
Makes downloaded logs easier to sort and identify.
Helps users correlate downloaded logs with troubleshooting sessions.

Suggested implementation

Append the current local timestamp at download time to the generated log filename. The timestamp should use a filesystem-safe format, avoiding characters such as : where necessary.

Why is this needed?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    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