Graylog2 / Graylog2/graylog2-server

Allow Custom Display Text for Hyperlinks in Decorators

Open
#27,095 0 comments 0 reactions 0 assignees View on GitHub
feature triaged
Dominant language
Java
Stars
8.1k
Forks
1.1k
Avg merge
1d 20h
Merged PRs (30d)
217

Description

What?

In Graylog decorators, it is possible to turn field values into hyperlinks. This is very useful, but currently the complete URL is displayed in the table.

When a URL is relatively long, this can make the table difficult to read and can significantly affect the layout:

https://example.com/this/is/a/very/long/url/that/makes/the/table/hard/to/read

It would be helpful if the decorator allowed users to define a custom display text for the hyperlink, while keeping the actual URL as the link target.

For example, instead of displaying:

https://example.com/this/is/a/very/long/url/that/makes/the/table/hard/to/read

the table could display something like:

Open Link

while still linking to the original URL.

Since Graylog 7.x introduced widget support for Markdown, would it be feasible to extend decorators so that the displayed hyperlink text can be specified independently from the hyperlink target?

Ideally, something along the lines of Markdown syntax could be supported:

[Link for HREF](long href that is really long and would otherwise destroy the table layout)

This would keep tables clean and readable while still providing access to the full URL.

Why?

Long URLs can make Graylog search result tables unnecessarily wide and difficult to read. This becomes particularly problematic when multiple fields contain URLs or when dashboards are designed to display information in a compact format.

As an end user, I would like to have control over what is displayed in the table without losing the underlying hyperlink.

A custom display text would make decorators considerably more flexible and would allow users to create much cleaner tables and dashboards.

This would also seem like a natural extension of the Markdown capabilities already available in Graylog 7.x.

Your Environment
Graylog Version: 7.1.8
OpenSearch Version: 2.19.4
MongoDB Version: 8.2
Operating System: Ubuntu 24
Browser version: Barave latest

Contributor guide

Open the contributing guide

Research direction

Start by tracing Graylog decorators and the existing widget Markdown support mentioned in the issue, then identify where decorator values become table hyperlinks. Define how display text and the original URL should be represented, and verify the result in search tables and dashboards with long URLs.

Written by the indexing model from the issue text.

Assessment

Tech stack
markdown
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.