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:
- settings(retention, min_severity=None)#
Configure log settings
- Parameters:
retention (int) – Log retention period in days
min_severity (cterasdk.edge.enum.Severity,optional) – Minimal log severity