Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added some readme info #6

Merged
merged 4 commits into from Jun 27, 2012
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

More additions

  • Loading branch information
Joe Friedrich
Joe Friedrich committed Jun 12, 2012
commit 9139b63417d1009974bcf7e32dcd32ccaa9671e9
@@ -1,19 +1,33 @@
Hoover
=====
#Hoover


A python wrapper used to hit the Loggly API

For more information on Hoover see <http://wiki.loggly.com/hooverguide>

Install
-------
##Install

With this git repo:
cd /hoover
sudo python setup.py install



Easy Install:
$easy_install -U hoover

Pypi:

<http://pypi.python.org/pypi/Hoover>



##Using Hoover


Using Hoover
------------
Enter your credentials in hoover.LogglySession after importing:

First you'll want to create a Loggly Session that will hold your subdomain, username, and password:
import hoover
.
.
@@ -22,10 +36,10 @@ First you'll want to create a Loggly Session that will hold your subdomain, user

i.search(q='apache2 error', starttime='NOW-2DAYS', format='csv')
i.search(q='json.priority:err', starttime='NOW-15MINUTES') #Defaults to json if format is left out


Search Properties
-----------------

##Search Properties


<table>
<tr>
@@ -67,9 +81,46 @@ Search Properties
</tr>
</table>

##Search Guide


Be Aware:

* Does not support case-sensitive searches. Everything is case-insensitive.
* Punctuations are not search-able. For example, '[' or ']' are not indexed, so a search for: '[error]' is the same as a search for 'error'
* Right now, we break on case-changes or changes from numerical to alpha characters. So, a search for 'www' will find results containing 'www111' or 'www112ww'.


##More Functions

<table>

<tr>
<td>Function</td>
<td>Description</td>
</tr>
<tr>
<td>*.config_inputs()</td>
<td></td>
</tr>
<tr>
<td>*.create_input()</td>
<td></td>
</tr>
<tr>
<td>*.facets()</td>
<td></td>
</tr>
<tr>
<td>*.http_inputs()</td>
<td></td>
</tr>
<tr>
<td>*.search()</td>
<td></td>
</tr>
</table>

Python Logging
--------------

Meta
----
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.