Skip to content

Commit

Permalink
- add notes
Browse files Browse the repository at this point in the history
  • Loading branch information
jordansissel committed Sep 5, 2012
1 parent b9d9253 commit f418044
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion recipes/apache-json-logs/index.md
Expand Up @@ -96,4 +96,10 @@ reads the apache log and verifies that all the entries parse as valid JSON.
Verifying valid JSON
Successful: 10000

You can see the code for this test here: [apache.conf](test/apache.conf), [spam.rb](test/spam.rb), [check.rb](test/check.rb).
Technically, what is verified above is that the ruby JSON parser can process
the data. Since apache uses '\xNN' notation for escaping special characters,
it is technically invalid 'JSON', but I've found may JSON parsers happily
accept it.

You can see the code for this test here: [apache.conf](test/apache.conf),
[spam.rb](test/spam.rb), [check.rb](test/check.rb).

0 comments on commit f418044

Please sign in to comment.