thanks for replying,
I know I can filter using the full string such as “GigabitEthernet4/0/6” but I’m avoiding too specific when searching, sometimes is not Gigabit but TenGigabitEthernet0/1, and sometimes its Ethernet1/2 depends on the device series (which sometimes we do not know which cisco series is this).
I expect graylog can filter with just a simple search like grep on linux, so when it found string contains 4/0/6 it will show the result, is there any way to do it?
there mistakes,
you try to find not a word, just end of the word, use “*4/0/3” if you set “allow_leading_wildcard_searches = true” in GL server.conf
Graylog or elasticsearch doesn’t handle the “-” in hostname well, it can cause problems sometimes
You have to escape the “/” and “-” also http://docs.graylog.org/en/2.4/pages/queries.html
okay done as you suggested and restarted the GL server:
I know “-” and “/” should be escaped with backslash but since the search result still showing from the right hostname I don’t bother using that, but okay I’ll use that and still no luck:
I suggest play it with step-by-step
change only one thing.
leave the hostname filter first
as I see, you have a “,” at the end, so myabe try to play *IF_NAME*, with or without escape characters. then try *IFNAME,
after that, you can try the hostname. I have really bad experience this topic (and I also saw some post in this forum too, so try to use *fd1.2 at first.
okay the message is what matters
why is this happening? is this because cisco syslog not comply to some sort of RFC?
this makes graylog useless for us, searching is the main feature of log collector
still no luck
just suggest me any pattern I’ll report back to you (I’ve tried many though)
Already tried using cisco plugin that extract the message, the result is still the same. The problem is on GL search function not on the received syslog message.
Yeah I don’t work only on port number though, it’s just an example.
If there’s a workaround it would really help us as a network guy
many thanks
It’s not a bug, it works as dev expected.
I know it has special char, as you can see on previous post I tried escape it according to the documentation.
Anyway many thanks for the help macko003, really appreciate it.
I’ll keep trying.
I can suggest to use a pipeline to copy the interface to separate field, and if you also remove the special chars, it could help.
eg. convert GigabitEthernet1/2/3, -> GE123