Review: investigating and reporting

Review: hand over the incident

Your shift on the checkout incident is ending. The next person needs the error evidence and a ranked visitor summary. All source data is provided again on this fresh machine.

Your goal

Create ~/handover with two files:

  • errors.txt: every uppercase ERROR line from ~/logs/app.log, in source order, followed by exactly one END OF REPORT line.
  • visitors.txt: one request count and address per line, covering every address in ~/access.log, ranked from largest count to smallest. Spaces or tabs between the count and address are fine.

Keep both source logs unchanged. Include repeated requests in the counts, and put nothing after the report's end marker.

Starting Linux…

Stuck?

    Something wrong or confusing?

    Challenge not found

    This challenge doesn't exist (any more). See all challenges.