Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bmanojlovic
Created May 14, 2014 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmanojlovic/202245a4c7036614e553 to your computer and use it in GitHub Desktop.
Save bmanojlovic/202245a4c7036614e553 to your computer and use it in GitHub Desktop.
import org.graylog2.plugin.Message
rule "Drop vmware guest crap"
when
m : Message( getField("full_message") matches "\\[ warning\\] \\[vmusr:vmusr\\] Error in the RPC receive loop: RpcIn(.|\r|\n)*" );
then
m.setFilterOut(true);
#System.out.println( "[DROOL] : " + m.toString() ); # too verbose crap...
end
rule "Drop ESX cosmetic crap"
when
m : Message( getField("message") matches "Hostd.*Unable.to.parse.(Min|Max)Ram(PerCpu)?.value(.|\r|\n)*" )
then
m.setFilterOut(true);
#System.out.println( "[DROOL] : " + m.toString() );
end
rule "Drop hostd spam"
when
m : Message( getField("message") matches ".*Malformed.guest.uptime.string(.|\r|\n)*" )
then
m.setFilterOut(true);
end
rule "Drop Vpxa crap 01"
when
m : Message( getField("message") matches ".*error.*VpxaClientAdapter..InvokeCommon.*throwing.*vmodl.fault.ManagedObjectNotFound.*received.while.invoking.moveInto.on.vim.ResourcePool(.|\r|\n)*" )
then
m.setFilterOut(true);
end
rule "Drop Vpxa crap 02"
when
m : Message( getField("message") matches "Vpxa:.*error.*(HostsvcPlugin|ResourcePool|VpxaHalResourcePoolvpxavpxaVmomi).*ProcessOps.*VmMoveSpec.*moveto.resgroup.*FAILURE.*ManagedObjectNotFound(.|\r|\n)*" )
then
m.setFilterOut(true);
end
rule "Drop Vpxa crap 03"
when
m : Message( getField("message") matches "Vpxa.*error.*(VpxaHalResourcePool|vpxavpxaVmomi).*ProcessOps.*UpdateSpec.*FAILURE.*ManagedObjectNotFound(.|\r|\n)*" )
then
m.setFilterOut(true);
end
rule "Drop Vpxa crap 04"
when
m : Message( getField("message") matches "Vpxa.*error.*(vpxavpxaVmomi).*Re-throwing method-fault.*vmodl.fault.ManagedObjectNotFound.*while.invoking.updateConfig.on.vim.ResourcePool.resgroup(.|\r|\n)*" )
then
m.setFilterOut(true);
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment