summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/py-flow-dashboard/flow-dash.py2
-rwxr-xr-xexamples/py-flow-info/flow-info.py6
-rwxr-xr-xexamples/py-semantic-validation/py-semantic-validation.py2
3 files changed, 5 insertions, 5 deletions
diff --git a/examples/py-flow-dashboard/flow-dash.py b/examples/py-flow-dashboard/flow-dash.py
index 624824f60..2ac825cac 100755
--- a/examples/py-flow-dashboard/flow-dash.py
+++ b/examples/py-flow-dashboard/flow-dash.py
@@ -62,7 +62,7 @@ def nDPIsrvd_worker_onJsonLineRecvd(json_dict, instance, current_flow, global_us
shared_flow_dict['total-events'] += 1
shared_flow_dict['total-json-bytes'] = nsock.received_bytes
- if 'basic_event_name' in json_dict:
+ if 'error_event_name' in json_dict:
shared_flow_dict['total-base-events'] += 1
if 'daemon_event_name' in json_dict:
diff --git a/examples/py-flow-info/flow-info.py b/examples/py-flow-info/flow-info.py
index 244b17cfb..aaf92e4d9 100755
--- a/examples/py-flow-info/flow-info.py
+++ b/examples/py-flow-info/flow-info.py
@@ -276,10 +276,10 @@ def onJsonLineRecvd(json_dict, instance, current_flow, global_user_data):
prettifyEvent(color, 15, 'DAEMON-EVENT'), daemon_msg))
stats.printStatus()
return True
- if 'basic_event_id' in json_dict:
+ if 'error_event_id' in json_dict:
print('{}{}{} {}: {}'.format(timestamp, basic_daemon_event_prefix, instance_and_source,
- prettifyEvent([TermColor.FAIL, TermColor.BLINK], 15, 'BASIC-EVENT'),
- json_dict['basic_event_name']))
+ prettifyEvent([TermColor.FAIL, TermColor.BLINK], 15, 'ERROR-EVENT'),
+ json_dict['error_event_name']))
stats.printStatus()
return True
elif 'flow_event_id' not in json_dict:
diff --git a/examples/py-semantic-validation/py-semantic-validation.py b/examples/py-semantic-validation/py-semantic-validation.py
index 65bf133c1..4b495487c 100755
--- a/examples/py-semantic-validation/py-semantic-validation.py
+++ b/examples/py-semantic-validation/py-semantic-validation.py
@@ -143,7 +143,7 @@ def onJsonLineRecvd(json_dict, instance, current_flow, global_user_data):
td = instance.getThreadDataFromJSON(json_dict)
- for event_name in ['basic_event_name', 'daemon_event_name',
+ for event_name in ['error_event_name', 'daemon_event_name',
'packet_event_name', 'flow_event_name']:
if event_name in json_dict and json_dict[event_name].lower() == 'invalid':
raise SemanticValidationException(current_flow,