Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

OVOS-utils

collection of simple utilities for use across the mycroft ecosystem

Install

pip install ovos_utils

Commandline scripts

ovos-logs

Small helper tool to quickly navigate the logs, create slices and quickview errors


  • ovos-logs slice [options]

    Slice logs of a given time period. Defaults on the last service start (-s) until now (-u)

    Different logs can be picked using the -l option. All logs will be included if not specified.
    Optionally the directory where the logs are stored (-p) and the file where the slices should be dumped (-f) can be specified.

    [ex: ovos-logs slice]
    Slice all logs from service start up until now.

    [ex: ovos-logs slice -s 17:05:20 -u 17:05:25]
    Slice all logs from 17:05:20 until 17:05:25.
    **no logs in that timeframe in other present logs Screenshot 2023-12-25 185004

    [ex: ovos-logs slice -s 17:05:20 -u 17:05:25 -l skills]
    Slice skills.log from 17:05:20 until 17:05:25.

    [ex: ovos-logs slice -s 17:05:20 -u 17:05:25 -f ~/testslice.log]
    Slice the logs from 17:05:20 until 17:05:25 on all log files and dump the slices in the file ~/testslice.log (default: ~/slice_<timestamp>.log). Screenshot 2023-12-25 190732


  • ovos-logs list [-e|-w|-d|-x] [options]

    List logs by severity (error/warning/debug/exception). A log level has to be specified - more than one can be listed

    A start and end date can be specified using the -s and -u options. Defaults to the last service start until now.
    Different logs can be picked using the -l option. All logs will be included if not specified.
    Optionally, the directory where the logs are stored (-p) and the file where the slices should be dumped (-f) can be passed as arguments.

    [ex: ovos-logs list -x]
    List the logs with level EXCEPTION (plus tracebacks) from the last service start until now. Screenshot 2023-12-25 184321

    [ex: ovos-logs list -w -e -s 20-12-2023 -l bus -l skills]
    List the logs with level WARNING and ERROR from the 20th of December 2023 until now from the logs bus.log and skills.log. Screenshot 2023-12-25 173739


  • ovos-logs reduce [options]

    Downsize logs to a given size (in bytes) or remove entries before a given date.

    Different logs can be included using the -l option. If not specified, all logs will be included.
    Optionally the directory where the logs are stored (-p) can be specified.

    [ex: ovos-logs reduce]
    Downsize all logs to 0 bytes

    [ex: ovos-logs reduce -s 1000000]
    Downsize all logs to ~1MB (latest logs)

    [ex: ovos-logs reduce -d "1-12-2023 17:00"]
    Downsize all logs to entries after the specified date/time

    [ex: ovos-logs reduce -s 1000000 -l skills -l bus]
    Downsize skills.log and bus.log to ~1MB (latest logs)


  • ovos-logs show -l [servicelog]

    Show logs

    [ex: ovos-logs show -l bus]
    Show the logs from bus.log.

    [ex: wrong servicelog]
    **logs shown depending on the logs present in the folder

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ovos_utils-0.13.6a1.tar.gz (78.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ovos_utils-0.13.6a1-py3-none-any.whl (88.8 kB view details)

Uploaded Python 3

File details

Details for the file ovos_utils-0.13.6a1.tar.gz.

File metadata

  • Download URL: ovos_utils-0.13.6a1.tar.gz
  • Upload date:
  • Size: 78.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for ovos_utils-0.13.6a1.tar.gz
Algorithm Hash digest
SHA256 fe21f70fbbb1be684cc96e7ad39981999f6b836f95b4c2a1fd66765909c4b829
MD5 636b289d3784786d7304df1381d95e90
BLAKE2b-256 6beeba6246587bc69d3f0e576b13a4aa6a62c8c65c5e32d2bc22cf44e2a1a315

See more details on using hashes here.

File details

Details for the file ovos_utils-0.13.6a1-py3-none-any.whl.

File metadata

  • Download URL: ovos_utils-0.13.6a1-py3-none-any.whl
  • Upload date:
  • Size: 88.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for ovos_utils-0.13.6a1-py3-none-any.whl
Algorithm Hash digest
SHA256 445912b1d11ce16b1c287d42e9ca8007016d4a559c16107a42803b26f2d609fa
MD5 3d42c1cf6e167331d3c42ea56d710a3e
BLAKE2b-256 a90b3fd5fb7d42c5be197d4134b335e136cee1e4aae43ebb964625d5d3203059

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.13.6a1 This release

2 files

0.8.5

2 files

0.8.4

2 files

0.8.1

2 files

0.7.1

2 files

0.7.0

2 files

0.6.1

2 files

0.6.0

2 files

0.5.6

2 files

0.5.5

2 files

0.5.4

2 files

0.5.3

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

2 files

0.3.7

2 files

0.3.6

2 files

0.3.5

2 files

0.3.4

2 files

0.3.3

2 files

0.3.1

2 files

0.3.0

2 files

0.2.1

2 files

0.1.0

2 files

0.1.0a2

2 files

0.0.38

2 files

0.0.37

2 files

0.0.36

2 files

0.0.35

2 files

0.0.35a4

2 files

0.0.35a3

2 files

0.0.34

2 files

0.0.33

2 files

0.0.32

2 files

0.0.30

2 files

0.0.29

2 files

0.0.28

2 files

0.0.27

2 files

0.0.26

2 files

0.0.25

2 files

0.0.24

2 files

0.0.23

2 files

0.0.22

2 files

0.0.21

2 files

0.0.20

1 file

0.0.19

1 file

0.0.18

1 file

0.0.15

1 file

0.0.14

1 file

0.0.14a6

1 file

0.0.12

1 file

0.0.11

1 file

0.0.10

1 file

0.0.9

1 file

0.0.8

1 file

0.0.7

1 file

0.0.6

1 file

0.0.5

1 file

0.0.4

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page