Ready to get going? Start your 14 days free trial today

Start free trial

Have an account? Sign in

Send data via HTTP/S to your Logstash instance provided by Logit.io

HTTP/S

Ship logs using HTTP/S to logit.io

Step 1 - RequirementsCopy

  • Valid JSON content
  • API key (find this on your dashboard) sent in the headers
  • Content-Type header set as application/json
  • Either POST or PUT to https://api.logit.io/v2

Step 2 - ExampleCopy

curl -i -H "ApiKey: your-api-key" -i -H "Content-Type: application/json" -H "LogType: json" https://api.logit.io/v2 -d '{"test":"test","example": { "a": 1, "b": 2 } }'

Step 3 - ResponseCopy

You should expect to receive a 202 Accepted response code for a successful message

HTTP/1.1 202 ACCEPTED
Server: nginx/1.6.0
Date: Mon, 04 May 2015 19:15:29 GMT
Content-Type: application/json
Content-Length: 25
{
  "message": "Thanks"
}

Step 4 - HTTP/S Logging OverviewCopy

HTTP is a client-server protocol designed in the early 1990s & provides the foundation of all web data exchanges. Data is sent over the connection using TCP or over a TLS-encrypted connection.

All HTTP requests are stored as logs in a text file. You’ll be able to locate all HTTP requests, access, status codes, server, & error logs in thelogs directory below the server instance root directory.

Querying all of the various HTTP logs generated by your application can easily turn into an unnecessarily time-consuming task when scaling your log analysis for larger websites processing thousands of requests per day.

Using a centralised logging UI (user interface) for reporting & visualisations makes streaming & troubleshooting your HTTP/S logs far more efficient in comparison to dealing with numerous log files across distributed systems.

The Logit platform offers a complete platform for centralising your log files from multiple applications and servers and provides an HTTP logger as part of our platform.

Our platform provides your teams with an easier solution for processing your HTTP/S data, as all of your logs can be sent directly to Logit for further processing, parsing & analysis.

Logit’s hosted ELK (Elasticsearch, Logstash, & Kibana) solution allows you to get the best out your HTTP/S log data by providing your developers with complete visibility of their web requests & tail events in real-time.

If you need any more help with migrating your HTTP/S logs to a single centralised log management platform our team is here to help. Feel free to visit our Help Centre or get in contact with our support team by sending us a message via live chat & we'll be happy to assist.

Toggle View

Expand View

Return to Search