Our next Hackathon is coming up this fall, and we want to hear your ideas!
A little background
Last October, Engineers spent a week away from their day-to-day work, pitched their own ideas, and formed teams around the ones that excited them most. It was such a success that we’re doing it again, and this time we’d love to hear from the Graylog Community!
Why we’re asking you
You use Graylog every day, so you know what would make it even better. We’ll take every idea submitted into consideration as we plan this event!
Please submit your ideas by Friday, October 16thWednesday, October 21st. (We’ve extended the deadline!! Please keep your ideas coming!)
How to submit
Reply to this thread with an opportunity, an idea, and a value. It should look like this
The Opportunity: What would you like to see added, expanded, or made easier? The more specific, the better.
The Idea: How do you picture it working? You don’t need a full plan. Just some general thoughts on what you’re imagining.
The Value: How would it make your Graylog experience better?
Make sure you have notifications enabled in case we have any follow-up questions.
The Idea is to have CIDR-Sliders to group IP adresses by subnets. UI-wise I imagine this to be similar to dates, where we have the little slider for the timeframe:
The Opportunity is to enable users to group by whole subnets. Often corporate networks are split in subnets for server, clients, IoT, whatsoever. Beeing able to take them as a group for a better comparison would be awesome. Now I have to run a different search for each subnet on it’s own. This is either a lot of work, or a pretty big dashboard. Especially with the new sankey-diagrams from Graylog 7.2 this would be very usefull to analyze traffic flows.
The value are just way better results in analyzing data related to IP-adresses.
The idea is to be able to assign a saved search to a stream. This saved search would be used to display the stream if you open it from the stream overview. I have been observing changes like the favorite fields in 7.1 which try to deal with the same issue: The default view of a stream is not very adopted to the content available.
The oportunity is to have faster insights into the data, with a view realy fitting the properties of that stream.
The value is less time spent in opening the right saved search and customize it for the case. And of course more happy Grayloggers!
I do build a lot of grok patterns. Building them is sometimes very time intensive: you need a high level of concentration to make them work, and performance also should be good (see my blog post about Grok Patterns here). I to belive that a lot of entry level Graylogers do have issues with building good grok patterns. The oportunity is to help them right in the beginning, when they start their first patterns.
The idea is to have a wizzard helping you to build groks. The most groks I build are for human readable text, where only some variables like hostnames, IPs and ports make the difference.
The user should provide at leat one example log, more if available.
Then the Grok pattern Wizzard recognizes the differences and suggests matching patterns.
In the thirst step the user should be able to assign matching field names, if the variables should be catched in separate fields.
All those three layers of content I want to have displayed next to each other in a long, potentially horizontal scrolable row. Here is one example for a fabricated log of a firewall:
The value of the existing Grok pattern editor is limited, as all examples are forgotten after the Grok pattern is saved. If stuff breaks, you will need to find log examples for both: the working one and the not working one. And then construct a grok patter which will fitt both.
I’d be very happy to hear from others, which idea they like most. Those are my most whished improvements.
Add multiple “Show top values” results to the query as OR
When I use Show top values on a field, I can already add a single value to the search with Add to query, but that always appends it as an AND condition. There’s no way to take several of the listed values into the query in one go.
In practice I often want to filter on a handful of the top values at the same time, e.g. the top 3 source hosts or a few specific event IDs. Right now I have to type the query by hand:
source:(host1 OR host2 OR host3)
which is tedious and error-prone, especially with long or cryptic values.
Idea: Add checkboxes (or a multi-select) to the top values list plus an action like “Add selected to query (OR)”. Graylog would then append something like field:(value1 OR value2 OR value3) to the current query. A matching “Exclude selected” (NOT field:(…)) would be a nice bonus for quickly filtering out noise.
This would make drilling down from a top-values widget much faster, without typing a single query by hand.
Using decorators (e.g. a Format String decorator) to build URLs from message fields works well, and when they’re rendered as hyperlinks you can click straight from the message table into another tool. But the table always shows the full URL as the blue link text.
These URLs are often long and full of parameters, so the actual message content gets pushed aside and the table becomes hard to read. In most cases the URL itself isn’t the interesting part; what matters is where it takes you.
Idea: Let the decorator define a static link text (or one built from fields) that is displayed instead of the raw URL, similar to Markdown:
[Open in ipam](https://ipam.example.com/search?ip=${src_ip})
So in the table you’d see something like Open in Infoblox or Ticket ${ticket_id} as the clickable link, while the full URL stays behind it (and could show up as a tooltip on hover).
This would keep message tables clean and make decorator links much more user-friendly, especially when several of them are configured.
When building internal Graylog links with decorators (e.g. “show all messages from this host” or “open the related stream”), there’s currently no way to include the time range selected in the time picker in the URL.
The result: the link either uses a fixed relative range (like the last 5 minutes) or the default range. If I’m looking at an incident from last Tuesday and click such a link, I end up in a search for a completely different time frame and have to set the time range manually again. That breaks the whole idea of quick drill-down.
Idea: Expose the current search time range as variables that decorators can use, for example:
As an addition, variables relative to the message timestamp would be very useful too, e.g. ${timestamp-5m} / ${timestamp+5m}, to jump to “everything around this event”.
This would make decorator links reliable for investigations, since the linked search always shows the same time frame you’re currently looking at.
“execute-if” and “execute-for-each” pipeline functions.
There are a lot of cases where I would like to put if conditions in my pipeline functions and have to build complicated pipelines instead of a couple if statements. I get that a real If block in pipelines is not easily feasible, but if i could have an “execute-if”-function like below, that would be great.
execute-if( execute:bool#execute or not function:graylog_pipeline_function # function to execute with "value"-parameter as argument function_args:dict # values to take as arguments for the function to execute default_return:object # return value if execute == false ): object # return value of the function or default_return
The same problem but without a sane workaround exists for for-each. The function to replace it could look like this:
for-each( iterable: list/dict # object to iterate over, function: graylog_pipeline_function # function to apply to each element function_args:dict # values to take as arguments for the function to execute function_key:string # which function-parameter the iterated value is used as ): list # return values of the functions
While I don’t strictly need the execute-if as there are workarounds(with multiple pipeline-rules and more overhead), I have not yet found a sane way to work with elements of lists of variable length in Pipelines.
These pipeline-functions would drastically improve pipeline functionality as a whole for me and make pipelines more readable, eliminating the need to stretch some simple parsing over multiple rules.
That would be very nice. Sadly, there is a bug in this display: if the URL contains a space the link will break and not be clickable anymore. Maybe that would be an eays catch for the hackathon @annie-zempel ?
Good catch! Sounds like the substituted field values just aren’t URL-encoded before being inserted. Encoding the values (not the template) automatically would fix it, and fits nicely together with the link text idea.
Detect grok parsing failures and manage tags natively
The Opportunity: In every pipeline rule I add a tag, so I can later see which rules a message passed through. But when the grok pattern in a rule doesn’t match, the rule still runs and the message gets the tag, although nothing was parsed. There’s no easy way to tell “processed and parsed” apart from “processed but failed to parse”. Today this is only possible by checking for missing fields in follow-up rules, which is cumbersome and fragile.
This is how I currently tag messages in every rule:
let new_combined_value = concat(to_string($message.tags), to_string(" format_macs"));
set_field(
field : "tags",
value : new_combined_value,
clean_field : false
);
And at the end of the pipeline, the tags get split into an array:
rule "System - format tags"
when
has_field("tags")
then
let fields = split(" ", to_string($message.tags));
set_field("tags", fields);
end
What’s missing: a way to mark a message with something like parsing_failed_format_macs when the grok in that rule didn’t match.
The Idea:
A way to detect a failed grok match, e.g. an optional tag_on_failure: "parsing_failed_format_macs" parameter for grok() (similar to Logstash’s _grokparsefailure), or a function that reports whether the last parse succeeded
Native add_tag() / remove_tag() functions that manage tags as a proper array, replacing the concat()/split() workaround above
The Value: Parsing failures become visible and searchable instantly (tags:parsing_failed_*), so you can find broken or changed log formats early, build alerts or dashboards on them, and fix grok patterns before data quality suffers. Native tag functions would also make pipeline rules shorter and less error-prone.
Thank you all for the great ideas! I’ll bring them in front of the engineers and hope that they will choose to tackle some of them during the Hackathon. And even if not, this is still extremely valuable input for us!
I took your idea and applied it to the existing hyperlink decorator. It allows building a custom URL and custom text displayed in the link. Have a look:
thank you so much for picking this up so quickly – this is exactly what I had in mind! I also really like that the field values in the URL template are URL-encoded, that makes it safe to use with arbitrary field contents.
Is there already an idea which Graylog release this might land in?