Fix logger in collector; fix header dates
This commit is contained in:
parent
cd07885d28
commit
0358c3416c
|
@ -3,7 +3,7 @@
|
||||||
"""
|
"""
|
||||||
This file belongs to https://github.com/bitkeks/python-netflow-v9-softflowd.
|
This file belongs to https://github.com/bitkeks/python-netflow-v9-softflowd.
|
||||||
|
|
||||||
Copyright 2017-2020 Dominik Pataky <dev@bitkeks.eu>
|
Copyright 2016-2020 Dominik Pataky <dev@bitkeks.eu>
|
||||||
Licensed under MIT License. See LICENSE.
|
Licensed under MIT License. See LICENSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
Reference analyzer script for NetFlow Python package.
|
Reference analyzer script for NetFlow Python package.
|
||||||
This file belongs to https://github.com/bitkeks/python-netflow-v9-softflowd.
|
This file belongs to https://github.com/bitkeks/python-netflow-v9-softflowd.
|
||||||
|
|
||||||
Copyright 2017-2020 Dominik Pataky <dev@bitkeks.eu>
|
Copyright 2016-2020 Dominik Pataky <dev@bitkeks.eu>
|
||||||
Licensed under MIT License. See LICENSE.
|
Licensed under MIT License. See LICENSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
Reference collector script for NetFlow v1, v5, and v9 Python package.
|
Reference collector script for NetFlow v1, v5, and v9 Python package.
|
||||||
This file belongs to https://github.com/bitkeks/python-netflow-v9-softflowd.
|
This file belongs to https://github.com/bitkeks/python-netflow-v9-softflowd.
|
||||||
|
|
||||||
Copyright 2017-2020 Dominik Pataky <dev@bitkeks.eu>
|
Copyright 2016-2020 Dominik Pataky <dev@bitkeks.eu>
|
||||||
Licensed under MIT License. See LICENSE.
|
Licensed under MIT License. See LICENSE.
|
||||||
"""
|
"""
|
||||||
import argparse
|
import argparse
|
||||||
|
@ -38,7 +38,7 @@ class QueuingRequestHandler(socketserver.BaseRequestHandler):
|
||||||
def handle(self):
|
def handle(self):
|
||||||
data = self.request[0] # get content, [1] would be the socket
|
data = self.request[0] # get content, [1] would be the socket
|
||||||
self.server.queue.put(RawPacket(time.time(), self.client_address, data))
|
self.server.queue.put(RawPacket(time.time(), self.client_address, data))
|
||||||
logging.debug(
|
logger.debug(
|
||||||
"Received %d bytes of data from %s", len(data), self.client_address
|
"Received %d bytes of data from %s", len(data), self.client_address
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"""
|
"""
|
||||||
This file belongs to https://github.com/bitkeks/python-netflow-v9-softflowd.
|
This file belongs to https://github.com/bitkeks/python-netflow-v9-softflowd.
|
||||||
|
|
||||||
Copyright 2017-2020 Dominik Pataky <dev@bitkeks.eu>
|
Copyright 2016-2020 Dominik Pataky <dev@bitkeks.eu>
|
||||||
Licensed under MIT License. See LICENSE.
|
Licensed under MIT License. See LICENSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ Created for learning purposes and unsatisfying alternatives.
|
||||||
Reference: https://www.cisco.com/en/US/technologies/tk648/tk362/technologies_white_paper09186a00800a3db9.html
|
Reference: https://www.cisco.com/en/US/technologies/tk648/tk362/technologies_white_paper09186a00800a3db9.html
|
||||||
This script is specifically implemented in combination with softflowd. See https://github.com/djmdjm/softflowd
|
This script is specifically implemented in combination with softflowd. See https://github.com/djmdjm/softflowd
|
||||||
|
|
||||||
Copyright 2017, 2018 Dominik Pataky <dev@bitkeks.eu>
|
Copyright 2016-2020 Dominik Pataky <dev@bitkeks.eu>
|
||||||
Licensed under MIT License. See LICENSE.
|
Licensed under MIT License. See LICENSE.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ This file contains tests for the NetFlow collector for versions 1, 5 and 9.
|
||||||
The test packets (defined below as hex streams) were extracted from "real"
|
The test packets (defined below as hex streams) were extracted from "real"
|
||||||
softflowd exports based on a sample PCAP capture file.
|
softflowd exports based on a sample PCAP capture file.
|
||||||
|
|
||||||
Copyright 2017-2020 Dominik Pataky <dev@bitkeks.eu>
|
Copyright 2016-2020 Dominik Pataky <dev@bitkeks.eu>
|
||||||
Licensed under MIT License. See LICENSE.
|
Licensed under MIT License. See LICENSE.
|
||||||
"""
|
"""
|
||||||
import gzip
|
import gzip
|
||||||
|
|
Loading…
Reference in a new issue