Red Hat Kibana logs cheat sheet - cloudigrade/cloudigrade GitHub Wiki

CI and QA environments

stage and prod environments

Example queries for stage/prod Kibana

Example KQL for the Kibana "Discover" UI

@log_stream:"cloudigrade-prod" AND @message:"Received task: api.tasks.persist_inspection_cluster_results_task"

Example query syntax for the "Dev Tools" (ElasticSearch proxy)

GET _search
{
  "from": 0,
  "size": 4,
  "query": {
    "bool": {
      "filter": [
        {
          "match_phrase": {
            "@log_stream": "cloudigrade-stage"
          }
        },
        {
          "match_phrase": {
            "@message": "api.clouds.aws.tasks.scale_up_inspection_cluster"
          }
        },
        {
          "range": {
            "@timestamp": {
              "format": "strict_date_optional_time",
              "lte": "2020-11-30T18:05:07.356Z",
              "gte": "2020-11-30T17:05:07.356Z"
            }
          }
        }
      ]
    }
  }
}