salo.events.suricata.http

Module Contents

Classes

HTTPModelFull

Mixin to provide __str__, __repr__, and __pretty__ methods. See #884 for more details.

HTTPModel

Mixin to provide __str__, __repr__, and __pretty__ methods. See #884 for more details.

Attributes

MAX_FUIDS

HTTP_VERSIONS

METHODS

STATUSES

salo.events.suricata.http.MAX_FUIDS = 2
salo.events.suricata.http.HTTP_VERSIONS = ['HTTP/1.0', 'HTTP/1.1']
salo.events.suricata.http.METHODS = ['GET', 'POST']
salo.events.suricata.http.STATUSES
class salo.events.suricata.http.HTTPModelFull(__pydantic_self__, **data: Any)[source]

Bases: salo.SaloEventModel

Mixin to provide __str__, __repr__, and __pretty__ methods. See #884 for more details.

__pretty__ is used by [devtools](https://python-devtools.helpmanual.io/) to provide human readable representations of objects.

class Config[source]
fields
http_port :Optional[int]
http_hostname :str
http_uri :str
http_user_agent :str
http_content_type :str
http_length :int
http_status_code :Optional[int]
http_version :Optional[str]
http_method :str
http_referrer :Optional[str]
http_request_headers :Optional[List[Dict]]
http_response_headers :Optional[List[Dict]]
set_http_version(cls, v)[source]
set_http_status_code(cls, v)[source]
class salo.events.suricata.http.HTTPModel(__pydantic_self__, **data: Any)[source]

Bases: salo.events.suricata.base.SuricataModel

Mixin to provide __str__, __repr__, and __pretty__ methods. See #884 for more details.

__pretty__ is used by [devtools](https://python-devtools.helpmanual.io/) to provide human readable representations of objects.

_refs :List[str] = ['https://suricata.readthedocs.io/en/suricata-6.0.0/output/eve/eve-json-format.html#event-type-http']
event_type :str
dest_port :int
http :Optional[Union[HTTPModelFull, Dict]]
set_values(cls, values)[source]
get_options(self, *args, **kwargs)[source]