dbug

Gewijzigd op Do, 11 Dec om 1:24 PM

Dbug

Usage

Run commands using the following syntax:

dbug <command> [options] [arguments]

For a simple summary without details:

dbug --simple

cache

cache:live

Tail and filter all cache requests. Available filters: `method, key` example: --filter='method=="hget"&&key=="user:*"' Wildcards (*) are supported for key filtering

Options:

  • --filter[=FILTER] - Filter results using php condition syntax

Example:

dbug cache:live

cache:stats

Show cache stats

Example:

dbug cache:stats

db

db:locks

Get database locks

Options:

  • --json - Output as JSON

Example:

dbug db:locks

db:slowlog

Get database slowlog for the main database

Options:

  • --json - Output as JSON

Example:

dbug db:slowlog

errors

errors:live

Tail all error logs

Example:

dbug errors:live

search

search:stats

Show Opensearch cluster health and performance metrics

Example:

dbug search:stats

session

session:live

Tail and filter all session requests. Available filters: `method, key` example: --filter='method=="hget"&&key=="user:*"' Wildcards (*) are supported for key filtering

Options:

  • --filter[=FILTER] - Filter results using php condition syntax

Example:

dbug session:live

session:stats

Show session stats

Example:

dbug session:stats

traffic

traffic:live

Tail access logs. Available filters: `clientIP, datetime, status, domain, realIP, country, userAgent, referrer, requestType, requestPath` example: --filter='(clientIP==xx.xx.xx.xx||clientIP==yy.yy.yy.yy)&&requestPath!=https://y.systems/x.html'

Options:

  • --filter[=FILTER] - Filter results using php condition syntax

Example:

dbug traffic:live

traffic:stats

Parse access logs for stats

Options:

  • --until-minutes-ago[=UNTIL-MINUTES-AGO] - Parse logs until X minutes ago
  • --hide-bots - Do not parse bots from UserAgents (this is a bit faster)
  • --json - Output as JSON

Example:

dbug traffic:stats

varnish

varnish:analyze:url

Analyse a single Varnish URL to find out why it keeps missing

Arguments:

  • url (required) - URL you want to debug between single quotes

Options:

  • --json - Output as JSON

Example:

dbug varnish:analyze:url

varnish:live

Tail and filter the varnish log Available filters: `path, ip, domain, return` example: --filter='path=="/api/v1"&&return=="HIT"'

Options:

  • --filter[=FILTER] - Filter results using php condition syntax

Example:

dbug varnish:live

varnish:stats

This command will parse logs since the last restart

Options:

  • --json - Output as JSON

Example:

dbug varnish:stats

Was dit artikel nuttig?

Dat is fantastisch!

Hartelijk dank voor uw beoordeling

Sorry dat we u niet konden helpen

Hartelijk dank voor uw beoordeling

Laat ons weten hoe we dit artikel kunnen verbeteren!

Selecteer tenminste een van de redenen
CAPTCHA-verificatie is vereist.

Feedback verzonden

We stellen uw moeite op prijs en zullen proberen het artikel te verbeteren