cterasdk.edge.logs module

cterasdk.edge.logs module#

class cterasdk.edge.logs.Logs(edge)#

Bases: BaseCommand

Edge Filer Logs APIs

Variables:

default_include (list[str]) – Default log fields - ‘severity’, ‘time’, ‘msg’, ‘more’

default_include = ['severity', 'time', 'msg', 'more']#
logs(topic, include=None, minSeverity='info')#

Fetch Edge Filer logs

Parameters:
  • topic (str) – Log Topic to fetch

  • include (list[str],optional) – List of fields to include in the response, defailts to Logs.default_include

  • minSeverity (cterasdk.edge.enum.Severity,optional) – Minimal log severity to fetch, defaults to cterasdk.edge.enum.Severity.INFO

Returns:

Log entries

Return type:

cterasdk.lib.iterator.QueryIterator

settings(retention, min_severity=None)#

Configure log settings

Parameters: