Mutate lowercase and gsub no longer working since upgrade

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Mutate lowercase and gsub no longer working since upgrad

Post by WillemDH »

A big issue that I noted with the lowercase mutate filter is that if the field is already lowercase and it attempts to run through the lowercase mutate filter, the entire field will be dropped. I think this is a new bug, and it's important to be aware of.
This seem like a bigger bug then the lowercase filter not applying? Maybe I better wait for you guys to decide it's time to upgrade. In fact I was hoping it was possible to only update the mutate plugin.

Let's put this thread on hold for now.

Thanks for the effort you put in it.
Nagios XI 5.8.1
https://outsideit.net
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Mutate lowercase and gsub no longer working since upgrad

Post by jolson »

Please read my second edit:

EDIT2: Updating the mutate filter after running the above procedure fixes the lowercase removal problem! :geek:

Code: Select all

/usr/local/nagioslogserver/logstash/bin/plugin update logstash-filter-mutate
service logstash restart
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Mutate lowercase and gsub no longer working since upgrad

Post by WillemDH »

Ah, nice. And upgrading Logstash now will not cause issues the next NLS update? And for the updated logstash-filter-mutate to work I need Logstash 1.5.4?
Nagios XI 5.8.1
https://outsideit.net
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Mutate lowercase and gsub no longer working since upgrad

Post by jolson »

Good news!



Updating just the plugin appears to work. This is all you'll need to do:

Code: Select all

/usr/local/nagioslogserver/logstash/bin/plugin update logstash-filter-mutate
service logstash restart
I feel like a bonehead for investing so much time into my previous post.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Mutate lowercase and gsub no longer working since upgrad

Post by WillemDH »

Hehe, that was actually what I suggested in my first post in this thread today.
Is there some way to implement this fix with just an update of the mutate plugin? Or does NLS need to be updated for that to work?
But at least you know that Logstash 1.5.4 seems to work fine. I will update the plugin tomorrow and probably confirm it is working. Then we can bury this thread... ;)
Nagios XI 5.8.1
https://outsideit.net
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Mutate lowercase and gsub no longer working since upgrad

Post by jolson »

Sounds good - looking forward to your results.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Mutate lowercase and gsub no longer working since upgrad

Post by WillemDH »

The lowercase mutate filter seems to work correctly now. Thanks Jesse. Please close.
Nagios XI 5.8.1
https://outsideit.net
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Mutate lowercase and gsub no longer working since upgrad

Post by jolson »

No problem - will do.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
Locked