Thanks !!!
Regarding your first point, these are logs of Telegraf:
2022-07-25T14:32:51Z I! Using config file: /etc/telegraf/telegraf.conf
2022-07-25T14:32:51Z I! Starting Telegraf 1.23.2
2022-07-25T14:32:51Z I! Loaded inputs: suricata
2022-07-25T14:32:51Z I! Loaded aggregators:
2022-07-25T14:32:51Z I! Loaded processors:
2022-07-25T14:32:51Z I! Loaded outputs: influxdb_v2
2022-07-25T14:32:51Z I! Tags enabled: host=fce4bed6b2b1
2022-07-25T14:32:51Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:"fce4bed6b2b1", Flush Interval:10s
2022-07-25T14:32:51Z E! [telegraf] Error running agent: starting input inputs.suricata: listen unix /tmp/suricata-command.socket: bind: address already in use
This is the service of Telegraf included in the docker-compose file:
telegraf:
container_name: telegraf
image: telegraf:${TELEGRAF_VERSION}
#profiles: ["telegraf"]
networks:
- influx
ports:
- 8125:8125/udp
- 80:80
restart: always
depends_on:
- influxdb
env_file:
- ./telegraf/telegraf.env
volumes:
- ./telegraf/telegraf.conf:/etc/telegraf/telegraf.conf:ro
- unix_stream-socket:/tmp/suricata-command.socket
… and these are the logs of Suricata:
Checking for capability sys_nice: yes
Checking for capability net_admin: yes
25/7/2022 -- 14:32:45 - <Notice> - This is Suricata version 6.0.6 RELEASE running in SYSTEM mode
25/7/2022 -- 14:32:45 - <Info> - CPUs/cores online: 8
25/7/2022 -- 14:32:45 - <Config> - app-layer.error-policy: ignore
25/7/2022 -- 14:32:45 - <Config> - 'default' server has 'request-body-minimal-inspect-size' set to 31638 and 'request-body-inspect-window' set to 4146 after randomization.
25/7/2022 -- 14:32:45 - <Config> - 'default' server has 'response-body-minimal-inspect-size' set to 39189 and 'response-body-inspect-window' set to 16880 after randomization.
25/7/2022 -- 14:32:45 - <Config> - SMB stream depth: 0
25/7/2022 -- 14:32:45 - <Config> - SMB max-read-size: 0
25/7/2022 -- 14:32:45 - <Config> - SMB max-write-size: 0
25/7/2022 -- 14:32:45 - <Config> - SMB max-write-queue-size: 0
25/7/2022 -- 14:32:45 - <Config> - SMB max-write-queue-cnt: 0
25/7/2022 -- 14:32:45 - <Config> - SMB max-read-queue-size: 0
25/7/2022 -- 14:32:45 - <Config> - SMB max-read-queue-cnt: 0
25/7/2022 -- 14:32:45 - <Config> - Protocol detection and parser disabled for modbus protocol.
25/7/2022 -- 14:32:45 - <Config> - Protocol detection and parser disabled for enip protocol.
25/7/2022 -- 14:32:45 - <Config> - Protocol detection and parser disabled for DNP3.
25/7/2022 -- 14:32:45 - <Warning> - [ERRCODE: SC_ERR_CONF_YAML_ERROR(242)] - App-Layer protocol sip enable status not set, so enabling by default. This behavior will change in Suricata 7, so please update your config. See ticket #4744 for more details.
25/7/2022 -- 14:32:45 - <Warning> - [ERRCODE: SC_ERR_CONF_YAML_ERROR(242)] - App-Layer protocol mqtt enable status not set, so enabling by default. This behavior will change in Suricata 7, so please update your config. See ticket #4744 for more details.
25/7/2022 -- 14:32:45 - <Warning> - [ERRCODE: SC_ERR_CONF_YAML_ERROR(242)] - App-Layer protocol rdp enable status not set, so enabling by default. This behavior will change in Suricata 7, so please update your config. See ticket #4744 for more details.
25/7/2022 -- 14:32:45 - <Info> - Found an MTU of 1500 for 'eth0'
25/7/2022 -- 14:32:45 - <Info> - Found an MTU of 1500 for 'eth0'
25/7/2022 -- 14:32:45 - <Config> - allocated 262144 bytes of memory for the host hash... 4096 buckets of size 64
25/7/2022 -- 14:32:45 - <Config> - preallocated 1000 hosts of size 136
25/7/2022 -- 14:32:45 - <Config> - host memory usage: 398144 bytes, maximum: 33554432
25/7/2022 -- 14:32:45 - <Config> - Core dump size is unlimited.
25/7/2022 -- 14:32:45 - <Config> - defrag.memcap-policy: ignore
25/7/2022 -- 14:32:45 - <Config> - allocated 3670016 bytes of memory for the defrag hash... 65536 buckets of size 56
25/7/2022 -- 14:32:45 - <Config> - preallocated 65535 defrag trackers of size 160
25/7/2022 -- 14:32:45 - <Config> - defrag memory usage: 14155616 bytes, maximum: 33554432
25/7/2022 -- 14:32:45 - <Config> - flow.memcap-policy: ignore
25/7/2022 -- 14:32:45 - <Config> - flow size 320, memcap allows for 419430 flows. Per hash row in perfect conditions 6
25/7/2022 -- 14:32:45 - <Config> - stream "prealloc-sessions": 2048 (per thread)
25/7/2022 -- 14:32:45 - <Config> - stream "memcap": 67108864
25/7/2022 -- 14:32:45 - <Config> - stream "midstream" session pickups: disabled
25/7/2022 -- 14:32:45 - <Config> - stream "async-oneside": disabled
25/7/2022 -- 14:32:45 - <Config> - stream "checksum-validation": enabled
25/7/2022 -- 14:32:45 - <Config> - stream.memcap-policy: ignore
25/7/2022 -- 14:32:45 - <Config> - stream.reassembly.memcap-policy: ignore
25/7/2022 -- 14:32:45 - <Config> - memcap-policy: 0/0
25/7/2022 -- 14:32:45 - <Config> - stream."inline": disabled
25/7/2022 -- 14:32:45 - <Config> - stream "bypass": disabled
25/7/2022 -- 14:32:45 - <Config> - stream "max-synack-queued": 5
25/7/2022 -- 14:32:45 - <Config> - stream.reassembly "memcap": 268435456
25/7/2022 -- 14:32:45 - <Config> - stream.reassembly "depth": 1048576
25/7/2022 -- 14:32:45 - <Config> - stream.reassembly "toserver-chunk-size": 2436
25/7/2022 -- 14:32:45 - <Config> - stream.reassembly "toclient-chunk-size": 2620
25/7/2022 -- 14:32:45 - <Config> - stream.reassembly.raw: enabled
25/7/2022 -- 14:32:45 - <Config> - stream.reassembly "segment-prealloc": 2048
25/7/2022 -- 14:32:45 - <Info> - dropped the caps for main thread
25/7/2022 -- 14:32:45 - <Info> - fast output device (regular) initialized: fast.log
25/7/2022 -- 14:32:45 - <Warning> - [ERRCODE: SC_ERR_SOCKET(200)] - Error connecting to socket "/var/run/suricata/suricata-command.socket": Connection refused (will keep trying)
25/7/2022 -- 14:32:45 - <Info> - Setting logging socket of non-blocking in live mode.
25/7/2022 -- 14:32:45 - <Info> - eve-log output device (unix_stream) initialized: /var/run/suricata/suricata-command.socket
25/7/2022 -- 14:32:45 - <Config> - enabling 'eve-log' module 'stats'
25/7/2022 -- 14:32:45 - <Info> - eve-log output device (regular) initialized: eve.json
25/7/2022 -- 14:32:45 - <Config> - enabling 'eve-log' module 'alert'
25/7/2022 -- 14:32:45 - <Config> - enabling 'eve-log' module 'anomaly'
25/7/2022 -- 14:32:45 - <Config> - enabling 'eve-log' module 'http'
25/7/2022 -- 14:32:45 - <Config> - enabling 'eve-log' module 'dns'
25/7/2022 -- 14:32:45 - <Config> - eve-log dns version not set, defaulting to version 2
25/7/2022 -- 14:32:45 - <Config> - eve-log dns version not set, defaulting to version 2
25/7/2022 -- 14:32:45 - <Config> - enabling 'eve-log' module 'tls'
25/7/2022 -- 14:32:45 - <Config> - enabling 'eve-log' module 'files'
25/7/2022 -- 14:32:45 - <Config> - enabling 'eve-log' module 'smtp'
25/7/2022 -- 14:32:45 - <Config> - enabling 'eve-log' module 'ftp'
25/7/2022 -- 14:32:45 - <Config> - enabling 'eve-log' module 'rdp'
25/7/2022 -- 14:32:45 - <Config> - enabling 'eve-log' module 'nfs'
25/7/2022 -- 14:32:45 - <Config> - enabling 'eve-log' module 'smb'
25/7/2022 -- 14:32:45 - <Config> - enabling 'eve-log' module 'tftp'
25/7/2022 -- 14:32:45 - <Config> - enabling 'eve-log' module 'ikev2'
25/7/2022 -- 14:32:45 - <Config> - enabling 'eve-log' module 'dcerpc'
25/7/2022 -- 14:32:45 - <Config> - enabling 'eve-log' module 'krb5'
25/7/2022 -- 14:32:45 - <Config> - enabling 'eve-log' module 'snmp'
25/7/2022 -- 14:32:45 - <Config> - enabling 'eve-log' module 'rfb'
25/7/2022 -- 14:32:45 - <Config> - enabling 'eve-log' module 'sip'
25/7/2022 -- 14:32:45 - <Config> - enabling 'eve-log' module 'dhcp'
25/7/2022 -- 14:32:45 - <Config> - enabling 'eve-log' module 'ssh'
25/7/2022 -- 14:32:45 - <Config> - enabling 'eve-log' module 'mqtt'
25/7/2022 -- 14:32:45 - <Config> - enabling 'eve-log' module 'stats'
25/7/2022 -- 14:32:45 - <Config> - enabling 'eve-log' module 'flow'
25/7/2022 -- 14:32:45 - <Info> - stats output device (regular) initialized: stats.log
25/7/2022 -- 14:32:45 - <Config> - Delayed detect disabled
25/7/2022 -- 14:32:45 - <Info> - Running in live mode, activating unix socket
25/7/2022 -- 14:32:45 - <Config> - pattern matchers: MPM: hs, SPM: hs
25/7/2022 -- 14:32:45 - <Config> - grouping: tcp-whitelist (default) 53, 80, 139, 443, 445, 1433, 3306, 3389, 6666, 6667, 8080
25/7/2022 -- 14:32:45 - <Config> - grouping: udp-whitelist (default) 53, 135, 5060
25/7/2022 -- 14:32:45 - <Config> - prefilter engines: MPM
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_uri
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_uri
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_raw_uri
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_raw_uri
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_request_line
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_client_body
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_response_line
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_header
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_header
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_header
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_header
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_header_names
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_header_names
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_header_names
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_header_names
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_accept
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_accept
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_accept_enc
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_accept_enc
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_accept_lang
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_accept_lang
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_referer
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_referer
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_connection
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_connection
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_content_len
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_content_len
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_content_len
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_content_len
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_content_type
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_content_type
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_content_type
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_content_type
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http.server
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http.server
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http.location
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http.location
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_protocol
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_protocol
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_start
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_start
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_raw_header
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_raw_header
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_raw_header
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_raw_header
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_method
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_method
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_cookie
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_cookie
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_cookie
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_cookie
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for file.name
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for file.name
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for file.name
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for file.name
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for file.name
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for file.name
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for file.name
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for file.name
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for file.name
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for file.name
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for file.name
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for file.magic
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for file.magic
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for file.magic
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for file.magic
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for file.magic
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for file.magic
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for file.magic
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for file.magic
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for file.magic
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for file.magic
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for file.magic
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_user_agent
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_user_agent
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_host
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_host
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_raw_host
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_raw_host
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_stat_msg
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_stat_code
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http_stat_code
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http2_header_name
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http2_header_name
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http2_header
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for http2_header
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for dns_query
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for dnp3_data
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for dnp3_data
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for tls.sni
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for tls.cert_issuer
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for tls.cert_subject
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for tls.cert_serial
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for tls.cert_fingerprint
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for tls.certs
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for ja3.hash
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for ja3.string
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for ja3s.hash
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for ja3s.string
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for dce_stub_data
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for dce_stub_data
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for dce_stub_data
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for dce_stub_data
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for smb_named_pipe
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for smb_share
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for ssh.proto
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for ssh.proto
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for ssh_software
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for ssh_software
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for ssh.hassh
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for ssh.hassh.server
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for ssh.hassh.string
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for ssh.hassh.server.string
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for file_data
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for file_data
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for file_data
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for file_data
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for file_data
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for file_data
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for krb5_cname
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for krb5_sname
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for sip.method
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for sip.uri
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for sip.protocol
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for sip.protocol
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for sip.method
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for sip.stat_msg
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for sip.request_line
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for sip.response_line
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for rfb.name
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for snmp.community
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for snmp.community
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for mqtt.connect.clientid
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for mqtt.connect.username
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for mqtt.connect.password
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for mqtt.connect.willtopic
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for mqtt.connect.willmessage
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for mqtt.publish.topic
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for mqtt.publish.message
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for mqtt.subscribe.topic
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for mqtt.unsubscribe.topic
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for icmpv4.hdr
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for tcp.hdr
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for udp.hdr
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for icmpv6.hdr
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for ipv4.hdr
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for ipv6.hdr
25/7/2022 -- 14:32:45 - <Config> - IP reputation disabled
25/7/2022 -- 14:32:45 - <Config> - Loading rule file: /var/lib/suricata/rules/emerging-exploit.rules
25/7/2022 -- 14:32:45 - <Config> - Loading rule file: /var/lib/suricata/rules/my-rules
25/7/2022 -- 14:32:45 - <Info> - 2 rule files processed. 1428 rules successfully loaded, 0 rules failed
25/7/2022 -- 14:32:45 - <Info> - Threshold config parsed: 0 rule(s) found
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for tcp-packet
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for tcp-stream
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for udp-packet
25/7/2022 -- 14:32:45 - <Perf> - using shared mpm ctx' for other-ip
25/7/2022 -- 14:32:45 - <Info> - 1428 signatures processed. 2 are IP-only rules, 378 are inspecting packet payload, 1047 inspect application layer, 0 are decoder event only
25/7/2022 -- 14:32:45 - <Config> - building signature grouping structure, stage 1: preprocessing rules... complete
25/7/2022 -- 14:32:45 - <Warning> - [ERRCODE: SC_WARN_FLOWBIT(306)] - flowbit 'ET.http.binary' is checked but not set. Checked in 2025195 and 1 other sigs
25/7/2022 -- 14:32:45 - <Warning> - [ERRCODE: SC_WARN_FLOWBIT(306)] - flowbit 'ET.http.javaclient' is checked but not set. Checked in 2015658 and 1 other sigs
25/7/2022 -- 14:32:45 - <Warning> - [ERRCODE: SC_WARN_FLOWBIT(306)] - flowbit 'et.IE7.NoRef.NoCookie' is checked but not set. Checked in 2024192 and 1 other sigs
25/7/2022 -- 14:32:45 - <Warning> - [ERRCODE: SC_WARN_FLOWBIT(306)] - flowbit 'ET.gocd.auth' is checked but not set. Checked in 2034333 and 0 other sigs
25/7/2022 -- 14:32:45 - <Warning> - [ERRCODE: SC_WARN_FLOWBIT(306)] - flowbit 'dcerpc.rpcnetlogon' is checked but not set. Checked in 2030870 and 6 other sigs
25/7/2022 -- 14:32:45 - <Warning> - [ERRCODE: SC_WARN_FLOWBIT(306)] - flowbit 'ET.BonitaDefaultCreds' is checked but not set. Checked in 2036817 and 0 other sigs
25/7/2022 -- 14:32:45 - <Perf> - TCP toserver: 41 port groups, 37 unique SGH's, 4 copies
25/7/2022 -- 14:32:45 - <Warning> - [ERRCODE: SC_WARN_POOR_RULE(276)] - rule 6: SYN-only to port(s) 80:80 w/o direction specified, disabling for toclient direction
25/7/2022 -- 14:32:45 - <Perf> - TCP toclient: 21 port groups, 11 unique SGH's, 10 copies
25/7/2022 -- 14:32:45 - <Perf> - UDP toserver: 30 port groups, 15 unique SGH's, 15 copies
25/7/2022 -- 14:32:45 - <Perf> - UDP toclient: 7 port groups, 4 unique SGH's, 3 copies
25/7/2022 -- 14:32:45 - <Perf> - OTHER toserver: 2 proto groups, 1 unique SGH's, 1 copies
25/7/2022 -- 14:32:45 - <Perf> - OTHER toclient: 2 proto groups, 0 unique SGH's, 2 copies
25/7/2022 -- 14:32:45 - <Perf> - Unique rule groups: 68
25/7/2022 -- 14:32:45 - <Perf> - Builtin MPM "toserver TCP packet": 23
25/7/2022 -- 14:32:45 - <Perf> - Builtin MPM "toclient TCP packet": 7
25/7/2022 -- 14:32:45 - <Perf> - Builtin MPM "toserver TCP stream": 31
25/7/2022 -- 14:32:45 - <Perf> - Builtin MPM "toclient TCP stream": 10
25/7/2022 -- 14:32:45 - <Perf> - Builtin MPM "toserver UDP packet": 15
25/7/2022 -- 14:32:45 - <Perf> - Builtin MPM "toclient UDP packet": 4
25/7/2022 -- 14:32:45 - <Perf> - Builtin MPM "other IP packet": 1
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toserver http_uri (http)": 8
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toserver http_uri (http2)": 8
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toserver http_raw_uri (http)": 1
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toserver http_raw_uri (http2)": 1
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toserver http_request_line (http)": 2
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toserver http_client_body (http)": 5
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toserver http_header (http)": 4
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toclient http_header (http)": 4
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toserver http_header (http2)": 4
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toclient http_header (http2)": 4
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toserver http_header_names (http)": 2
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toclient http_header_names (http)": 2
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toserver http_header_names (http2)": 2
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toclient http_header_names (http2)": 2
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toserver http_accept_enc (http)": 1
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toserver http_accept_enc (http2)": 1
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toserver http_referer (http)": 1
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toserver http_referer (http2)": 1
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toserver http_content_type (http)": 2
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toserver http_content_type (http2)": 2
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toclient http_content_type (http)": 2
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toclient http_content_type (http2)": 2
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toclient http.server (http)": 1
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toclient http.server (http2)": 1
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toserver http_start (http)": 1
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toclient http_start (http)": 1
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toserver http_cookie (http)": 3
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toclient http_cookie (http)": 3
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toserver http_cookie (http2)": 3
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toclient http_cookie (http2)": 3
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toserver http_user_agent (http)": 2
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toserver http_user_agent (http2)": 2
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toclient http_stat_code (http)": 1
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toclient http_stat_code (http2)": 1
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toserver tls.sni (tls)": 1
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toserver file_data (smtp)": 5
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toclient file_data (http)": 5
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toserver file_data (smb)": 5
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toclient file_data (smb)": 5
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toserver file_data (http2)": 5
25/7/2022 -- 14:32:45 - <Perf> - AppLayer MPM "toclient file_data (http2)": 5
25/7/2022 -- 14:32:48 - <Config> - Using flow cluster mode for AF_PACKET (iface eth0)
25/7/2022 -- 14:32:48 - <Config> - Using defrag kernel functionality for AF_PACKET (iface eth0)
25/7/2022 -- 14:32:48 - <Perf> - 8 cores, so using 8 threads
25/7/2022 -- 14:32:48 - <Perf> - Using 8 AF_PACKET threads for interface eth0
25/7/2022 -- 14:32:48 - <Config> - eth0: enabling zero copy mode by using data release call
25/7/2022 -- 14:32:48 - <Info> - Going to use 8 thread(s)
25/7/2022 -- 14:32:48 - <Config> - using 1 flow manager threads
25/7/2022 -- 14:32:48 - <Config> - using 1 flow recycler threads
25/7/2022 -- 14:32:48 - <Info> - Running in live mode, activating unix socket
25/7/2022 -- 14:32:48 - <Info> - Using unix socket file '/var/run/suricata/suricata-command.socket'
25/7/2022 -- 14:32:48 - <Warning> - [ERRCODE: SC_ERR_INITIALIZATION(45)] - Unix socket: UNIX socket bind(/var/run/suricata/suricata-command.socket) error: Address already in use
25/7/2022 -- 14:32:48 - <Warning> - [ERRCODE: SC_ERR_INITIALIZATION(45)] - Unable to create unix command socket
25/7/2022 -- 14:32:48 - <Notice> - all 8 packet processing threads, 4 management threads initialized, engine started.
25/7/2022 -- 14:32:48 - <Perf> - AF_PACKET RX Ring params: block_size=32768 block_nr=13 frame_size=1600 frame_nr=260
25/7/2022 -- 14:32:48 - <Perf> - AF_PACKET RX Ring params: block_size=32768 block_nr=13 frame_size=1600 frame_nr=260
25/7/2022 -- 14:32:48 - <Perf> - AF_PACKET RX Ring params: block_size=32768 block_nr=13 frame_size=1600 frame_nr=260
25/7/2022 -- 14:32:48 - <Perf> - AF_PACKET RX Ring params: block_size=32768 block_nr=13 frame_size=1600 frame_nr=260
25/7/2022 -- 14:32:48 - <Perf> - AF_PACKET RX Ring params: block_size=32768 block_nr=13 frame_size=1600 frame_nr=260
25/7/2022 -- 14:32:48 - <Perf> - AF_PACKET RX Ring params: block_size=32768 block_nr=13 frame_size=1600 frame_nr=260
25/7/2022 -- 14:32:48 - <Perf> - AF_PACKET RX Ring params: block_size=32768 block_nr=13 frame_size=1600 frame_nr=260
25/7/2022 -- 14:32:48 - <Perf> - AF_PACKET RX Ring params: block_size=32768 block_nr=13 frame_size=1600 frame_nr=260
25/7/2022 -- 14:32:48 - <Info> - All AFP capture threads are running.
… and this the suricata service in the docker-compose:
suricata:
image: jasonish/suricata:${SURICATA_VERSION}
container_name: suricata
#profiles: ["suricata"]
restart: always
env_file:
- './suricata/env.suricata'
network_mode: "host"
cap_add:
- NET_ADMIN
- SYS_NICE
- NET_RAW
ports:
- 80:80
volumes:
- ./suricata/suricata.yaml:/etc/suricata/suricata.yaml
- ./suricata/log:/var/log/suricata
- ./suricata/rules:/var/lib/suricata/rules
- unix_stream-socket:/var/run/suricata/suricata-command.socket
- I guess Suricata does not allow you to specify between metrics.