Hello everyone
I’ve been struggling on this issue for the past few days and i’m seeking any recommandation or explaination on how i can fix this issue
I currently have multiple ubuntu servers which are sending logs through rsyslog (tcp with tls) to two HA HAproxy, which forward the logs with tcp mode configured to my graylog cluster composed of three servers
I have my input configured, my logs are being received by graylog and i currently have a pipeline configured with different steps configured like this :
rule “Parse SYSLOG3164”
when
has_field(
field : “full_message”
)
then
let gl2_fragment_grok_results = grok(
pattern: “%{SYSLOG3164}”,
value: to_string($message.full_message),
only_named_captures: true
);
set_field(“parsed”, “ok”);
end
rule “Fix Timestamp”
when
has_field(“timestamp”)
then
let str = to_string($message.timestamp);
set_field(“timestamp”,
to_date(
format_date(
flex_parse_date(str),
“yyyy-MM-dd HH:mm:ss”
)
)
);
end
All of the fields are being parsed properly, my only issue is all of my indexes have the field type text instead of date.
I already have a index_pattern configured inside my elasticsearch cluster, but graylog refuse to use it and always create a mapping on it’s own, missing my key configuration inside my index_pattern (setting all timestamp fields to date type)
I also can’t configure my type inside index set templates, the timestamp field is greyed out and it’s marked as Reserved field
Any feedback on how can i fix my field type or make graylog understand that, timestamp is indeed a date field ? Because of this issue i can’t search through my logs because graylog don’t recognise my timestamp field as date
I tried multiple pipeline configuration without any sucess, i though to_date would fix the field type to date as said inside the graylog webui from the quick reference (“Converts a type to a date …”)
My timestamp at the end looks like this when extracting content from my indexes
“timestamp”: “2026-02-02 17:35:15.000”,
I’m currently running graylog 6.2.1 with a Elasticsearch 7.10.2 behind (also on three servers)
Thanks
