Read logs from a logging group since 1h

Tail YC Cloud Logging filtered to ERROR/WARN; modern: --since accepts 1h/30m relative windows

yc logging read --group-name <name> --since 1h --levels ERROR,WARN --format json | jq -r '.[] | "\(.timestamp) \(.level) \(.message)"'

tool
yc32 commands
tags
ycobservabilitytroubleshooting

More yc commands

  • yc certificate-manager certificate request --name <name> --domains <host>,*.<host> && yc certificate-manager certificate list --format json | jq -r '.[] | "\(.name)\t\(.status)\t\(.not_after)"'

    Request managed wildcard cert then check status; note: needs DNS/HTTP validation to issue

  • yc config set folder-id <id> && yc config list

    Set default folder-id for the active profile; verify with config list

  • yc config profile create prod && yc config profile activate prod

    Isolate creds per env; use yc --profile prod or YC_PROFILE in CI

  • export YC_TOKEN=$(yc iam create-token)

    OAuth->IAM token, ~12h TTL; feed to API/Terraform via YC_TOKEN env

  • yc iam service-account create --name sa-ci --description 'CI deployer'

    Create SA for pipelines; bind least-privilege roles separately

all 32 yc commands