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.8a1.tar.gz (78.8 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.8a1-py3-none-any.whl (89.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ovos_utils-0.13.8a1.tar.gz
  • Upload date:
  • Size: 78.8 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.8a1.tar.gz
Algorithm Hash digest
SHA256 d43f66b43679b20e018a5feff0c1f342f0ec1f88856f581cb2929a04eb2291ed
MD5 94e739b9be07862923470a587b4d9d7a
BLAKE2b-256 eab8d7f2b5e8e5682923e4ad41d3b7228afa2b790168ad635305471e96f82c25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ovos_utils-0.13.8a1-py3-none-any.whl
  • Upload date:
  • Size: 89.4 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.8a1-py3-none-any.whl
Algorithm Hash digest
SHA256 3c8a574fa5dc82ca5bce9f1083005286d516476d235a667e2847a23e2825391f
MD5 b8baf138873ba7dc7ad52adf3ee4c451
BLAKE2b-256 7a734b38bd683f0e67f5a707498c77c643e0b7ed17fa8c78f9932a73c1d9682e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.13.8a1 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