API - Tail the HTTP access log (tail_apache_log)

Logs & Analytics

Gives you the latest lines of the web server access log that mention your Opensolr Index: the address of each caller, the time, the URL and the HTTP status.

Endpointhttps://opensolr.com/solr_manager/api/tail_apache_log
MethodGET
Authemail and api_key of your account, as GET or POST parameters: Authentication.
In the panelAnalytics

01 · Parameters

core_nameRequired

The name of your index.

02 · Example

curl -s "https://opensolr.com/solr_manager/api/tail_apache_log?email=YOUR_EMAIL&api_key=YOUR_API_KEY&core_name=my_index"

03 · Answer

status is true and msg is plain text, one log line per line. The last 1500 lines of the log are read on a shared server, the last 300 on a dedicated one, and only those that mention your index are kept.

04 · Errors

No such indexHTTP 200

The index is not yours, or does not exist.

ERROR_AUTHENTICATION_FAILEDHTTP 403

The email and API key do not match.

ERROR_RATE_LIMIT_PER_MINUTEHTTP 429

Too many calls. Wait for the Retry-After seconds: Rate limits.

05 · Related

The Solr log of the same requests: tail_access_log. IP rules: add_ip.

Every error code and HTTP status of the API: API errors. Calls per minute and per hour: Rate limits.