So all the informations that we want to show in our dashboard is in the field “message”, from this, we want to extract the date, time, name of the switch (SW28 in this case) the username (admin) and the IP adress as a unique field.
I moved your question to “Graylog Central” where questions are asked (…and hopefully solved!)
Are you having trouble figuring out GROK or are you having trouble trying to implement GROK in an extractor or in a pipeline?
Can you post the text of your sample message (Using the forum tool </> for nice formatting) as well as what you have come up with so far for a GROK pattern? Do you want to do it in the pipeline or in an extractor?
NOTE: As shown in @H077E’s example you have to account for everything between %{time} and %{IPV4} even if you use %{GREEDYDATA:UNWANTED} Where UNWANTED means don’t capture that data into a field.