Change protocol from UDP to TCP
Modify to prevent the payload file from overriding when event is neither user or query.
Merge fix/template-security-group.
Merge fix/correct-payload-logic.
Fix if-statement.