Skip to content

Logs Part 3 — Parse, Extract, Visualize#

📓 Download Exercise Notebook | Answer Key

Section 1: Parsing Log Data#

Extract structured data from unstructured log content using parse.

  • Exercise 1.1 — Parse quantity
  • Exercise 1.2 — Parse userId
  • Exercise 1.3 — Parse productId
  • Exercise 1.4 — Parse userId, productId, and quantity (3 parse commands)
  • Exercise 1.4 — Parse userId, productId, and quantity (1 parse command)

Section 2: Visualization#

Visualize parsed data using charts.

  • Exercise 2.1 — Single value: Quantity
  • Exercise 2.2 — Line chart: Quantity over time
  • Exercise 2.3 — Pie chart: Quantity by Product ID

Extras#

  • Extra 1 — Fetch JSON logs
  • Extra 3 — Parse JSON