Skip to content

Commit e60ab22

Browse files
author
Andy Kipp
committed
more readme updates
1 parent 4f97b9d commit e60ab22

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,20 @@ Python wrapper for semicomplete's Grok library.
22

33
About
44
-----
5-
Grok allows you to easily parse logs and other files and turns the unstructured
6-
log and event data into structured data.
5+
Grok allows you to easily parse logs and other files and turns the unstructured log and event data into structured data.
76

87
Installing
98
----------
109

11-
You will need libgrok installed in other to use libgrok-py. On MacOSX this is available via Homebrew:
10+
You will need libgrok installed in other to use libgrok-py. On MacOSX, Grok is available via Homebrew:
1211

13-
Install Grok Dependencies
14-
brew install tokyo-cabinet pcre libevent
12+
_Install Grok Dependencies_
1513

16-
Install Grok
17-
brew install grok
14+
brew install tokyo-cabinet pcre libevent
1815

19-
You can also compile from source.
16+
_Install Grok_
2017

18+
brew install grok
2119

2220
Usage
2321
-----
@@ -29,3 +27,5 @@ Usage
2927
>>> match = grok("http://www.example.com/test/")
3028
>>> match.captures.items()
3129
[('USERNAME', ''), ('HOSTNAME', 'www.example.com'), ('URIPATH', '/test/'), ('IPORHOST', 'www.example.com'), ('POSINT:port', ''), ('URIPROTO', 'http'), ('IP', ''), ('URIHOST', 'www.example.com'), ('URIPATHPARAM', '/test/'), ('URI:foo', 'http://www.example.com/test/'), ('URIPARAM', ''), ('USER', '')]
30+
>>> match["foo"]
31+
'http://www.example.com/test/'

0 commit comments

Comments
 (0)