You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zed A. Shaw
857ac5e95e
|
2 years ago | |
---|---|---|
.. | ||
README.md | 2 years ago | |
package.json | 2 years ago | |
short.log.txt | 2 years ago | |
step1.js | 2 years ago |
README.md
02: Filter a Log File
In this exercise you'll take a webserver log I've created and parse the log file then filter the log for special events or information. You have a couple of approaches:
- Brute force the filter by simply using a regex to scan the raw text.
- Parse each line into meaningful data and filter on that.
The two samples in this directory get you started with both approaches. The step1.js
file starts off the brute force RegEx
method while the step2.js
starts off the parsing method.
Keep in mind these are not solutions. They're starter file so you can get going without having to struggle with all of the setup. Once you're done you should attempt this again but do it entirely from nothing so you know how that's done.