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

Logs #16

Closed
ElPicador opened this issue Nov 30, 2015 · 0 comments
Closed

Logs #16

ElPicador opened this issue Nov 30, 2015 · 0 comments
Milestone

Comments

@ElPicador
Copy link
Contributor

You can retrieve the latest logs via this API. Each log entry contains:

  • Timestamp in ISO-8601 format
  • Client IP
  • Request Headers (API Key is obfuscated)
  • Request URL
  • Request method
  • Request body
  • Answer HTTP code
  • Answer body
  • SHA1 ID of entry

You can retrieve the logs of your last 1,000 API calls and browse them using the offset/length parameters:

  • _offset_: Specify the first entry to retrieve (0-based, 0 is the most recent log entry). Defaults to 0.
  • _length_: Specify the maximum number of entries to retrieve starting at the offset. Defaults to 10. Maximum allowed value: 1,000.
  • _onlyErrors_: Retrieve only logs with an HTTP code different than 200 or 201. (deprecated)
  • _type_: Specify the type of logs to retrieve:
    • _query_: Retrieve only the queries.
    • _build_: Retrieve only the build operations.
    • _error: Retrieve only the errors (same as _onlyErrors parameters).
TODO: // Get last 10 log entries
client.getLogs();
// Get last 100 log entries
client.getLogs(0, 100);
@ElPicador ElPicador added this to the 1.4 milestone Dec 22, 2015
@ElPicador ElPicador mentioned this issue Feb 17, 2016
@ElPicador ElPicador modified the milestones: 1.3, 1.4 Feb 17, 2016
algoliareadmebot added a commit to algoliareadmebot/algoliasearch-client-scala that referenced this issue Jul 18, 2016
  Maintainable format (algolia#94)

* small fixes

* fix some links

* start

* move some content to partials

* First iteration of ruby script

* Fix include

* add synonyms. Fixes algolia#16

* partial for 0-intro

* split data folder into several files

* handle multiple json files

* refacto 1-getting-started

* parameters extracting 1/n

* 3-indexing

* 6-manage-indices

* 7-api-keys

* parameters extracting 2/n

* parameters extracting 3/n

* 9-advanced

* Fix json

* parameters extracting 4/n

* Fix json

* Fix stuff

* 4-settings

* Fix stuff again

* parameters extracting 5/n

* Refactor the 2-search-find page

* Fix anchors

* parameters extracting 6/6

* Fix stuff

* [android] Fix Geo search query parameters

* [android] Fix Geo search query parameters (again)

* [android] Fix `highlightPreTag` query parameter

* Fix android geo stuff

* fix synonyms method name
  [This list might not be relevant]
  fix links

Maintainable format (algolia#94)

* small fixes

* fix some links

* start

* move some content to partials

* First iteration of ruby script

* Fix include

* add synonyms. Fixes algolia#16

* partial for 0-intro

* split data folder into several files

* handle multiple json files

* refacto 1-getting-started

* parameters extracting 1/n

* 3-indexing

* 6-manage-indices

* 7-api-keys

* parameters extracting 2/n

* parameters extracting 3/n

* 9-advanced

* Fix json

* parameters extracting 4/n

* Fix json

* Fix stuff

* 4-settings

* Fix stuff again

* parameters extracting 5/n

* Refactor the 2-search-find page

* Fix anchors

* parameters extracting 6/6

* Fix stuff

* [android] Fix Geo search query parameters

* [android] Fix Geo search query parameters (again)

* [android] Fix `highlightPreTag` query parameter

* Fix android geo stuff

* fix synonyms method name
 [ci skip]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant