asenchi/scrolls — pull request #48 by jasonrudolph (2014-01-06 19:00:55+00:00)
Title: Auto-quote values containing commas or colons

If a log value has a space or an equals sign in it, [Scrolls automatically wraps the value in quotes before logging the value][1]. :cool: (This is important, since whitespace and equals signs have significant syntactical meaning in the log output.)

In Splunk (and perhaps also in similar tools), if a log value has a comma or a colon in it, you need to wrap the value in quotes before logging it. Today, I'm manually wrapping such values in quotes before sending the data to Scrolls. It would be awesome have Scrolls automatically detect and quote such values. This pull request adds that functionality.

[1]: https://github.com/asenchi/scrolls/blob/2cbd7318e64bd0f4c6b8093839a8e09ae26b8680/lib/scrolls/parser.rb#L23-L39