Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions modules/python/scripts/logsql.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def start(self):
self.cursor.execute("""CREATE TABLE IF NOT EXISTS
connections (
connection INTEGER PRIMARY KEY,
id INTEGER,
connection_type TEXT,
connection_transport TEXT,
connection_protocol TEXT,
Expand Down Expand Up @@ -584,6 +585,9 @@ def connection_insert(self, icd, connection_type):
(attackid, i ) )
self.dbh.commit()

# Set the ID table ready for Logstash
self.cursor.execute("UPDATE connections SET id = ? WHERE connection = ?", (attackid, attackid) )

return attackid


Expand Down