>_ IzzyLab

Topic breakdown

A classic "log → summary" pipeline: pull the right field from each line, count how often it repeats, and reshape into the target format. The last field of a line in awk is taken via $NF — more reliable than a fixed column number when lines vary in length. Counting frequencies is the pair sort | uniq -c, but uniq collapses only consecutive duplicates, so sorting before it is mandatory; note also that uniq -c puts the counter as the first column, so the order "value count" will have to be swapped with one more pass if needed.

What's checked

  1. Status 200 counted
  2. Status 500 counted
  3. counts per status are correct

What it looks like