Translate Plugin

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Envera IT
Posts: 159
Joined: Wed Jun 19, 2013 10:21 am

Translate Plugin

Post by Envera IT »

I was looking to use the Translate plugin https://www.elastic.co/guide/en/logstas ... slate.html but didn't see it listed in the NLS filesystem (probably because its a community maintained plugin). Maybe theres a different way to accomplish what I'm trying to do.

I have a firewall log that references a number of values (hundreds) in different scenarios. I'd like to be able to do a dictionary lookup on a YAML file formatted like this.

Code: Select all

"0": HOPOPT
"1": ICMP
"2": IGMP
"3": GGP
"4": IP-in-IP
"5": ST
"6": TCP
"7": CBT
"8": EGP
"9": IGP
"10": BBN-RCC-MON
"11": NVP-II
"12": PUP
etc
etc
etc
So if "1" replace with ICMP. Whats the best way to do something like that using the installed plugins? Would rather not need to write massive filters to grok replace.
I like graphs...
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Translate Plugin

Post by jolson »

You can install the translate plugin by issuing the following command:

Code: Select all

/usr/local/nagioslogserver/logstash/bin/logstash install logstash-filter-translate
After installing the translate plugin, I imagine you'll have no problem trying to parse out your YAML. :)
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.
Envera IT
Posts: 159
Joined: Wed Jun 19, 2013 10:21 am

Re: Translate Plugin

Post by Envera IT »

jolson wrote:You can install the translate plugin by issuing the following command:

Code: Select all

/usr/local/nagioslogserver/logstash/bin/logstash install logstash-filter-translate
After installing the translate plugin, I imagine you'll have no problem trying to parse out your YAML. :)

That helped get me looking in the right direction. I had to run /usr/local/nagioslogserver/logstash/bin/plugin install logstash-filter-translate

Install went fine, thanks!
I like graphs...
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Translate Plugin

Post by jolson »

Oh crud, my bad! I even typed it correctly in my terminal - not sure what I was thinking. ;)

I'm glad you got this working, is there anything else I can help you with?
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.
Envera IT
Posts: 159
Joined: Wed Jun 19, 2013 10:21 am

Re: Translate Plugin

Post by Envera IT »

jolson wrote:Oh crud, my bad! I even typed it correctly in my terminal - not sure what I was thinking. ;)

I'm glad you got this working, is there anything else I can help you with?
At the moment I'm good on this issue. I have other questions that I'll eventually open another thread on as they differ so much from this topic. As always thanks for your help!
I like graphs...
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Translate Plugin

Post by jolson »

Sounds great, I'll close it out.

Jesse
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.