Simple library for logging to Loggly

Overview

#Hoover

A python wrapper used to hit the Loggly. API

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

##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

Enter your credentials in hoover.LogglySession after importing:

import hoover
.
.
.
i = hoover.LogglySession('<subdomain>','<username>','<password>')

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

For more details on using search within Loggly check out http://wiki.loggly.com/searchguide

Property Description
rows Number of rows returned by your query. Defaults to 10.
start Offset for starting row. Defaults to 0.
starttime Start time for the search. Defaults to NOW-24HOURS.
endtime End time for the search. Defaults to NOW.
order Direction of results returned, either 'asc' or 'desc'. Defaults to 'desc'.
callback JSONP callback to receive a JSONP response.
format Output format, either 'json', 'xml', or 'text'. Defaults to 'json'
fields Which fields should be output. One or more of the following separated by commas: 'id', 'timestamp', 'ip', 'inputname', 'text'.

##More Functions

Function Description
*.config_inputs() Configures each input in your loggly account, register a python logger with the input's name logging to the input.
*.create_input() Creates a new input on your loggly account.
*.facets() Thin wrapper on Loggly's facet search API. facetby can be input, ip, or date
*.http_inputs() Lists all http inputs
*.search() See above "Search Properties"
*.inputs Lists all inputs

Meta

Created and maintained by Mike Blume

If you have questions contact [email protected]

Comments
  • CVE-2021-33503 (High) detected in urllib3-1.26.4-py2.py3-none-any.whl - autoclosed

    CVE-2021-33503 (High) detected in urllib3-1.26.4-py2.py3-none-any.whl - autoclosed

    CVE-2021-33503 - High Severity Vulnerability

    Vulnerable Library - urllib3-1.26.4-py2.py3-none-any.whl

    HTTP library with thread-safe connection pooling, file post, and more.

    Library home page: https://files.pythonhosted.org/packages/09/c6/d3e3abe5b4f4f16cf0dfc9240ab7ce10c2baa0e268989a4e3ec19e90c84e/urllib3-1.26.4-py2.py3-none-any.whl

    Path to dependency file: /tmp/ws-scm/hoover

    Path to vulnerable library: /tmp/ws-scm/hoover

    Dependency Hierarchy:

    • requests-2.25.1-py2.py3-none-any.whl (Root Library)
      • :x: urllib3-1.26.4-py2.py3-none-any.whl (Vulnerable Library)

    Found in base branch: master

    Vulnerability Details

    An issue was discovered in urllib3 before 1.26.5. When provided with a URL containing many @ characters in the authority component, the authority regular expression exhibits catastrophic backtracking, causing a denial of service if a URL were passed as a parameter or redirected to via an HTTP redirect.

    Publish Date: 2021-06-29

    URL: CVE-2021-33503

    CVSS 3 Score Details (7.5)

    Base Score Metrics:

    • Exploitability Metrics:
      • Attack Vector: Network
      • Attack Complexity: Low
      • Privileges Required: None
      • User Interaction: None
      • Scope: Unchanged
    • Impact Metrics:
      • Confidentiality Impact: None
      • Integrity Impact: None
      • Availability Impact: High

    For more information on CVSS3 Scores, click here.

    Suggested Fix

    Type: Upgrade version

    Origin: https://github.com/urllib3/urllib3/security/advisories/GHSA-q2q7-5pp4-w6pg

    Release Date: 2021-06-29

    Fix Resolution: urllib3 - 1.26.5

    security vulnerability 
    opened by mend-for-github-com[bot] 2
  • updated hoover to use python requests instead of httplib2

    updated hoover to use python requests instead of httplib2

    This seems to solve a strange problem with the recent certificates on loggly.com when using httplib2 on python 2.6, plus requests is a very nice http library worth using :)

    opened by gingerlime 1
  • CVE-2021-33503 (High) detected in urllib3-1.26.4-py2.py3-none-any.whl

    CVE-2021-33503 (High) detected in urllib3-1.26.4-py2.py3-none-any.whl

    CVE-2021-33503 - High Severity Vulnerability

    Vulnerable Library - urllib3-1.26.4-py2.py3-none-any.whl

    HTTP library with thread-safe connection pooling, file post, and more.

    Library home page: https://files.pythonhosted.org/packages/09/c6/d3e3abe5b4f4f16cf0dfc9240ab7ce10c2baa0e268989a4e3ec19e90c84e/urllib3-1.26.4-py2.py3-none-any.whl

    Path to dependency file: /tmp/ws-scm/hoover

    Path to vulnerable library: /tmp/ws-scm/hoover

    Dependency Hierarchy:

    • requests-2.25.1-py2.py3-none-any.whl (Root Library)
      • :x: urllib3-1.26.4-py2.py3-none-any.whl (Vulnerable Library)

    Found in base branch: master

    Vulnerability Details

    An issue was discovered in urllib3 before 1.26.5. When provided with a URL containing many @ characters in the authority component, the authority regular expression exhibits catastrophic backtracking, causing a denial of service if a URL were passed as a parameter or redirected to via an HTTP redirect.

    Publish Date: 2021-06-29

    URL: CVE-2021-33503

    CVSS 3 Score Details (7.5)

    Base Score Metrics:

    • Exploitability Metrics:
      • Attack Vector: Network
      • Attack Complexity: Low
      • Privileges Required: None
      • User Interaction: None
      • Scope: Unchanged
    • Impact Metrics:
      • Confidentiality Impact: None
      • Integrity Impact: None
      • Availability Impact: High

    For more information on CVSS3 Scores, click here.

    Suggested Fix

    Type: Upgrade version

    Origin: https://github.com/urllib3/urllib3/security/advisories/GHSA-q2q7-5pp4-w6pg

    Release Date: 2021-06-29

    Fix Resolution: urllib3 - 1.26.5

    security vulnerability 
    opened by mend-for-github-com[bot] 0
  • CVE-2022-23491 (High) detected in certifi-2020.12.5-py2.py3-none-any.whl

    CVE-2022-23491 (High) detected in certifi-2020.12.5-py2.py3-none-any.whl

    CVE-2022-23491 - High Severity Vulnerability

    Vulnerable Library - certifi-2020.12.5-py2.py3-none-any.whl

    Python package for providing Mozilla's CA Bundle.

    Library home page: https://files.pythonhosted.org/packages/5e/a0/5f06e1e1d463903cf0c0eebeb751791119ed7a4b3737fdc9a77f1cdfb51f/certifi-2020.12.5-py2.py3-none-any.whl

    Path to dependency file: /tmp/ws-scm/hoover

    Path to vulnerable library: /tmp/ws-scm/hoover

    Dependency Hierarchy:

    • requests-2.25.1-py2.py3-none-any.whl (Root Library)
      • :x: certifi-2020.12.5-py2.py3-none-any.whl (Vulnerable Library)

    Found in base branch: master

    Vulnerability Details

    Certifi is a curated collection of Root Certificates for validating the trustworthiness of SSL certificates while verifying the identity of TLS hosts. Certifi 2022.12.07 removes root certificates from "TrustCor" from the root store. These are in the process of being removed from Mozilla's trust store. TrustCor's root certificates are being removed pursuant to an investigation prompted by media reporting that TrustCor's ownership also operated a business that produced spyware. Conclusions of Mozilla's investigation can be found in the linked google group discussion.

    Publish Date: 2022-12-07

    URL: CVE-2022-23491

    CVSS 3 Score Details (7.5)

    Base Score Metrics:

    • Exploitability Metrics:
      • Attack Vector: Network
      • Attack Complexity: Low
      • Privileges Required: None
      • User Interaction: None
      • Scope: Unchanged
    • Impact Metrics:
      • Confidentiality Impact: None
      • Integrity Impact: High
      • Availability Impact: None

    For more information on CVSS3 Scores, click here.

    Suggested Fix

    Type: Upgrade version

    Origin: https://www.cve.org/CVERecord?id=CVE-2022-23491

    Release Date: 2022-12-07

    Fix Resolution: certifi - 2022.12.07

    security vulnerability 
    opened by mend-for-github-com[bot] 0
  • Fix side effect of record modified affecting the next in line handler.

    Fix side effect of record modified affecting the next in line handler.

    The issue Hoover processing has a side effect modifying the LogRecord "msg" field.

    The existing code handling a Log Record having a dict data as message is as follows: convert the dict into json, update the record.msg to reference that json ( modifying the original record) delegating that record

    Some OTHER log handler expecting the message as dict would fail, It takes the record.msg which should have been a dict and since hoover has changed that, it is now a json.

    The fix Hoover use a modified shallow copy instead of actually modifying the log record.

    Using python shallow clone copy.copy which is modified and used by hoover. The original LogRecord does not change.

    opened by saffih 0
Owner
Hoover Loggly
Hoover Loggly
A suite of utilities for AWS Lambda Functions that makes tracing with AWS X-Ray, structured logging and creating custom metrics asynchronously easier

A suite of utilities for AWS Lambda Functions that makes tracing with AWS X-Ray, structured logging and creating custom metrics asynchronously easier

Amazon Web Services - Labs 1.9k Jan 7, 2023
Twitch Points Miner for multiple accounts with Discord logging

Twitch Points Miner for multiple accounts with Discord logging Creator of the Twitch Miner -- PLEASE NOTE THIS IS PROBABLY BANNABLE -- Made on python

null 8 Apr 27, 2022
My personal template for a discord bot, including an asynchronous database and colored logging :)

My personal template for a discord bot, including an asynchronous database and colored logging :)

Timothy Pidashev 9 Dec 24, 2022
This is a Python bot, which automates logging in, purchasing and planting the seeds. Open source bot and completely free.

?? Sunflower Land Bot ?? ⚠️ Warning I am not responsible for any penalties incurred by those who use the bot, use it at your own risk. This BOT is com

Newerton 18 Aug 31, 2022
Aio-binance-library - Async library for connecting to the Binance API on Python

aio-binance-library Async library for connecting to the Binance API on Python Th

GRinvest 10 Nov 21, 2022
A simple library for interacting with Amazon S3.

BucketStore is a very simple Amazon S3 client, written in Python. It aims to be much more straight-forward to use than boto3, and specializes only in

Jacobi Petrucciani 219 Oct 3, 2022
:snake: A simple library to fetch data from the iTunes Store API made for Python >= 3.5

itunespy itunespy is a simple library to fetch data from the iTunes Store API made for Python 3.5 and beyond. Important: Since version 1.6 itunespy no

Fran González 56 Dec 22, 2022
A simple Python library to integrate with the Heron Data API

Heron Python This library provides easy access to the Heron Data API from applications written in Python. Documentation No language-specific docs are

Heron Data 11 Nov 11, 2022
This repo contains a simple library for work with Eitaa messenger's api

Eitaa PyKit This repo contains a simple library for work with Eitaa messenger's api PyPI Page : https://pypi.org/project/Eitaa-PyKit Install via pip p

Bistcuite 20 Sep 16, 2022
A simple use library for bot discord.py developers

Discord Bot Template It's a simple use library for bot discord.py developers. Ob

Tir Omar 0 Oct 16, 2022
TM1py is a Python package that wraps the TM1 REST API in a simple to use library.

By wrapping the IBM Planning Analytics (TM1) REST API in a concise Python framework, TM1py facilitates Python developments for TM1. Interacting with T

Cubewise CODE 147 Dec 15, 2022
LavaAPI - A simple library for accepting payments and using the LAVA Wallet

This library was created to simplify the LAVA api provided on the official websi

Vlad Baccara 8 Dec 18, 2022
iCloudPy is a simple iCloud webservices wrapper library written in Python

iCloudPy ?? Please star this repository if you end up using the library. It will help me continue supporting this product. ?? iCloudPy is a simple iCl

Mandar Patil 49 Dec 26, 2022
Simple-nft-tutorial - A simple tutorial on making nft/memecoins on algorand

nft/memecoin Tutorial on Algorand Let's make a simple NFT/memecoin on the Algora

null 2 Feb 5, 2022
🐍 The official Python client library for Google's discovery based APIs.

Google API Client This is the Python client library for Google's discovery based APIs. To get started, please see the docs folder. These client librar

Google APIs 6.2k Jan 8, 2023
Python bindings for ArrayFire: A general purpose GPU library.

ArrayFire Python Bindings ArrayFire is a high performance library for parallel computing with an easy-to-use API. It enables users to write scientific

ArrayFire 402 Dec 20, 2022
Balanced API library in python.

Balanced Online Marketplace Payments v1.x requires Balanced API 1.1. Use v0.x for Balanced API 1.0. Installation pip install balanced Usage View Bala

Balanced 70 Oct 4, 2022
python library to the bitly api

bitly API python library Installation pip install bitly_api Run tests Your username is the lowercase name shown when you login to bitly, your access

Bitly 245 Aug 14, 2022
Braintree Python library

Braintree Python library The Braintree Python library provides integration access to the Braintree Gateway. TLS 1.2 required The Payment Card Industry

Braintree 230 Dec 18, 2022