зеркало из https://github.com/mozilla/MozDef.git
correct bulk processing for new heka
This commit is contained in:
Родитель
a44e231af7
Коммит
15673e9cab
|
@ -33,14 +33,11 @@ def bulkindex():
|
|||
for i in bulkpost.splitlines():
|
||||
eventlist.append(i)
|
||||
|
||||
if connection is None or connection.is_open==False:
|
||||
openMQConnection()
|
||||
|
||||
for i in eventlist:
|
||||
try:
|
||||
#valid json?
|
||||
try:
|
||||
eventDict=json.loads(anevent)
|
||||
eventDict=json.loads(i)
|
||||
except ValueError as e:
|
||||
response.status=500
|
||||
return
|
||||
|
|
Загрузка…
Ссылка в новой задаче