Compare Network Event Logs
In ~/project, read events-a.tsv and events-b.tsv with cat. The files describe fictional network events already collected for you. Each tab-delimited row has an event ID, UTC time, source, target, and outcome. No network activity is needed.
Read the event sequence
Run tail -n +2 events-a.tsv | cut -f1 > sequence-a.txt. This skips the header and records the IDs in file order. Compare the order with the IDs in events-b.tsv.
Compare the two event sets
Extract and sort the IDs from each export, for example by adding | sort -u after cut -f1. Save the sorted lists in two different files and use diff -u to compare them. If they match, save the common IDs in common-ids.txt in ascending order, one per line.
Count source and target pairs
Use the UTC window 09:00-09:10, including 09:00 and excluding 09:10. Count matching rows from events-a.tsv by their source and target, regardless of outcome. Save window.tsv with one row per pair, sorted by source. Each row has source, target, and count separated by tabs, with no header.
Explain what the evidence shows
Write analysis.md with headings ### Evidence and ### Interpretation. Cite the window 09:00-09:10 and the two IDs for client-a and web-edge. Explain how their outcomes differ and why a difference in row order alone does not prove events are missing.
Summary
You compared event sets independently of row order, grouped events in a time window, and cited evidence with its limits.



