Skip to content

Instantly share code, notes, and snippets.

View dconlon's full-sized avatar

DanC dconlon

  • Trend Micro
  • Leeds, UK
View GitHub Profile
@dconlon
dconlon / loggly.py
Created October 14, 2016 13:24
Loggly CLI interface - standalone (Just Python). Pages results automatically so you can easily grab up to 2000 rows.
#!/usr/bin/env python
"""
Loggly CLI interface - standalone (Just Python). Deals with paging results automatically so you can easily grab >2000 rows.
Run `loggly.py --help` to see usage information.
TODO:
* Facet support
* Paging beyong 5000 rows by manipulation of date range