Hi,
I am getting error:
SyntaxError: (ruby filter code):3: syntax error, unexpected tIDENTIFIER
logInfo = event.get('wmcode').split('.').last
I am using below filter:
ruby
{
code => "
apptemp = event.get('wmcode').split('.').first
event.set('app' , apptemp[1..apptemp.length])
logInfo = event.get('wmcode').split('.').last
event.set('logLevel' , logInfo[logInfo.length-2..logInfo.length-2])
"
}
Please help!