Log Search
Search the logs for a specific event or error message to aid in troubleshooting.
oblv logs search [VALUES]
For example,
oblv logs search "version" "auth"
The output includes,
- Name of the file
- Line number
- Text, line containing the given input string
info
The inputs to oblv logs search
command are case sensetive
Log search output
oblv logs search version
Will produce the output like
/home/user/.config/oblv/logs/oblv-configure_r00008.log:5061:[2024-04-30 23:46:52] TRACE [oci_distribution::client]: Got Headers headers={"content-length": "9854", "content-type": "application/vnd.oci.image.index.v1+json", "docker-content-digest": "sha256:c7a6ad68be85142c7fe1089e48faa1e7c7166a194caa9180ddea66345876b9d2", "docker-distribution-api-version": "registry/2.0", "etag": "\"sha256:c7a6ad68be85142c7fe1089e48faa1e7c7166a194caa9180ddea66345876b9d2\"", "date": "Tue, 30 Apr 2024 18:16:53 GMT", "strict-transport-security": "max-age=31536000", "ratelimit-limit": "100;w=21600", "ratelimit-remaining": "100;w=21600", "docker-ratelimit-source": "103.190.13.44"}
Searching multiple strings
You can pass multiple strings as an input to this command, this will search through the logs for example,
oblv logs search version auth
This will include the search results containing both of the strings "version" and "auth"
/home/user/.config/oblv/logs/oblv-configure_r00008.log:5061:[2024-04-30 23:46:52] TRACE [oci_distribution::client]: Got Headers headers={"content-length": "9854", "content-type": "application/vnd.oci.image.index.v1+json", "docker-content-digest": "sha256:c7a6ad68be85142c7fe1089e48faa1e7c7166a194caa9180ddea66345876b9d2", "docker-distribution-api-version": "registry/2.0", "etag": "\"sha256:c7a6ad68be85142c7fe1089e48faa1e7c7166a194caa9180ddea66345876b9d2\"", "date": "Tue, 30 Apr 2024 18:16:53 GMT", "strict-transport-security": "max-age=31536000", "ratelimit-limit": "100;w=21600", "ratelimit-remaining": "100;w=21600", "docker-ratelimit-source": "103.190.13.44"}
/home/user/.config/oblv/logs/oblv-configure_r00008.log:5096: name: auth-plugin