so here is my config file, maybe there I have a problem?:
filter {
json{
source => "message"
}
aggregate {
task_id => "%{transactionId}"
code => "
if (map['authCBGot'])
event.set('authCBGot', (map['authCBGot']))
else
if (event.get('authCBGot').eql? '0')
# do nothing
else
map['authCBGot'] = event.get('authCBGot')
end
end
if (map['blackListCBGot'])
event.set('blackListCBGot', (map['blackListCBGot']))
else
if (event.get('blackListCBGot').eql? '0')
# do nothing
else
map['blackListCBGot'] = event.get('blackListCBGot')
end
end
if (map['medGotFromUser_MO'])
event.set('medGotFromUser_MO', (map['medGotFromUser_MO']))
else
if (event.get('medGotFromUser_MO').eql? '0')
# do nothing
else
map['medGotFromUser_MO'] = event.get('medGotFromUser_MO')
end
end
if (map['MedGotMsgFromApi'])
event.set('MedGotMsgFromApi', (map['MedGotMsgFromApi']))
else
if (event.get('MedGotMsgFromApi').eql? '0')
# do nothing
else
map['MedGotMsgFromApi'] = event.get('MedGotMsgFromApi')
end
end
if (map['lnpInfoGot'])
event.set('lnpInfoGot', (map['lnpInfoGot']))
else
if (event.get('lnpInfoGot').eql? '0')
# do nothing
else
map['lnpInfoGot'] = event.get('lnpInfoGot')
end
end
if (map['msgSentToJMS_MT'])
event.set('msgSentToJMS_MT', (map['msgSentToJMS_MT']))
else
if (event.get('msgSentToJMS_MT').eql? '0')
# do nothing
else
map['msgSentToJMS_MT'] = event.get('msgSentToJMS_MT')
end
end
if (map['medGotAck_MT'])
event.set('medGotAck_MT', (map['medGotAck_MT']))
else
if (event.get('medGotAck_MT').eql? '0')
# do nothing
else
map['medGotAck_MT'] = event.get('medGotAck_MT')
end
end
if (map['medSentToJMS_MO'])
event.set('medSentToJMS_MO', (map['medSentToJMS_MO']))
else
if (event.get('medSentToJMS_MO').eql? '0')
# do nothing
else
map['medSentToJMS_MO'] = event.get('medSentToJMS_MO')
end
end
if (map['medSentDLR_MT'])
event.set('medSentDLR_MT', (map['medSentDLR_MT']))
else
if (event.get('medSentDLR_MT').eql? '0')
# do nothing
else
map['medSentDLR_MT'] = event.get('medSentDLR_MT')
end
end
if (map['accountInfoGot'])
event.set('accountInfoGot', (map['accountInfoGot']))
else
if (event.get('accountInfoGot').eql? '0')
# do nothing
else
map['accountInfoGot'] = event.get('accountInfoGot')
end
end
if (map['smscGotAck_MO'])
event.set('smscGotAck_MO', (map['smscGotAck_MO']))
else
if (event.get('smscGotAck_MO').eql? '0')
# do nothing
else
map['smscGotAck_MO'] = event.get('smscGotAck_MO')
end
end
if (map['SMPP_got'])
event.set('SMPP_got', (map['SMPP_got']))
else
if (event.get('SMPP_got').eql? '0')
# do nothing
else
map['SMPP_got'] = event.get('SMPP_got')
end
end
if (map['SMPP_sent'])
event.set('SMPP_sent', (map['SMPP_sent']))
else
if (event.get('SMPP_sent').eql? '0')
# do nothing
else
map['SMPP_sent'] = event.get('SMPP_sent')
end
end
if (map['medGotMsg_MO'])
event.set('medGotMsg_MO', (map['medGotMsg_MO']))
else
if (event.get('medGotMsg_MO').eql? '0')
# do nothing
else
map['medGotMsg_MO'] = event.get('medGotMsg_MO')
end
end
if (map['smscSentAck_MO'])
event.set('smscSentAck_MO', (map['smscSentAck_MO']))
else
if (event.get('smscSentAck_MO').eql? '0')
# do nothing
else
map['smscSentAck_MO'] = event.get('smscSentAck_MO')
end
end
if (map['medSentRespToApi'])
event.set('medSentRespToApi', (map['medSentRespToApi']))
else
if (event.get('medSentRespToApi').eql? '0')
# do nothing
else
map['medSentRespToApi'] = event.get('medSentRespToApi')
end
end
if (map['medGotDLR_MT'])
event.set('medGotDLR_MT', (map['medGotDLR_MT']))
else
if (event.get('medGotDLR_MT').eql? '0')
# do nothing
else
map['medGotDLR_MT'] = event.get('medGotDLR_MT')
end
end
if (map['medSentToUser_MO'])
event.set('medSentToUser_MO', (map['medSentToUser_MO']))
else
if (event.get('medSentToUser_MO').eql? '0')
# do nothing
else
map['medSentToUser_MO'] = event.get('medSentToUser_MO')
end
end
if (map['SRI_sent'])
event.set('SRI_sent', (map['SRI_sent']))
else
if (event.get('SRI_sent').eql? '0')
# do nothing
else
map['SRI_sent'] = event.get('SRI_sent')
end
end
if (map['SRI_got'])
event.set('SRI_got', (map['SRI_got']))
else
if (event.get('SRI_got').eql? '0')
# do nothing
else
map['SRI_got'] = event.get('SRI_got')
end
end
if (map['FSM_sent'])
event.set('FSM_sent', (map['FSM_sent']))
else
if (event.get('FSM_sent').eql? '0')
# do nothing
else
map['FSM_sent'] = event.get('FSM_sent')
end
end
if (map['FSM_got'])
event.set('FSM_got', (map['FSM_got']))
else
if (event.get('FSM_got').eql? '0')
# do nothing
else
map['FSM_got'] = event.get('FSM_got')
end
end
if (map['terminationCause'])
event.set('terminationCause', (map['terminationCause']))
else
if (event.get('terminationCause').eql? '0')
# do nothing
else
map['terminationCause'] = event.get('terminationCause')
end
end
if (map['reason'])
event.set('reason', (map['reason']))
else
if (event.get('reason').eql? '0')
# do nothing
else
map['reason'] = event.get('reason')
end
end
"
push_map_as_event_on_timeout => true
timeout_task_id_field => "transactionId"
timeout => 3600
inactivity_timeout => 2
timeout_tags => ["aggregate"]
timeout_code => "event.set('cdrType', 'aggregated')"
}
if "aggregate" not in [tags] {
drop{}
}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.