PHPackages                             kirarpit/loggly-retrieving-data - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. kirarpit/loggly-retrieving-data

ActiveLibrary

kirarpit/loggly-retrieving-data
===============================

Loggly retrieving data library for PHP

v0.1.0(9y ago)17[1 issues](https://github.com/kirarpit/loggly-retrieving-data/issues)MITPHPPHP &gt;=5.2.0

Since Aug 31Pushed 9y ago1 watchersCompare

[ Source](https://github.com/kirarpit/loggly-retrieving-data)[ Packagist](https://packagist.org/packages/kirarpit/loggly-retrieving-data)[ Docs](https://github.com/kirarpit/loggly-retrieving-data)[ RSS](/packages/kirarpit-loggly-retrieving-data/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Loggly Event Retrieval API Library
==================================

[](#loggly-event-retrieval-api-library)

> loggly-retrieving-data is the PHP library of [Loggly Retrieving Data API](https://www.loggly.com/docs/api-retrieving-data/).

Installation
------------

[](#installation)

`composer require kirarpit/loggly-retrieving-data`

Usage
-----

[](#usage)

Anything which can be searched on Loggly Search Panel could be queried here and the resulted events would be returned along with the total number of such events.

The must defined parameters for a search are 'query', 'from\_timestamp' and 'to\_timestamp', rest are optional.

Optional size parameter in the query defines the number of events fetched in a single page. The maximum value it can take is 5000, after which another curl request is to be made with shorter duration as described in the [Loggly Retrieving Data API](https://www.loggly.com/docs/api-retrieving-data/), which is automatically handled by the library under the hood.

```
