Getting started
Getting started with LogHub is quick and easy! In just a few simple steps, you’ll be able to send your first log and integrate LogHub into your project.
Register on LogHub
Head over to app.loghub.cloud and sign up for a free account. Once you’ve completed the registration, you’ll have access to the LogHub dashboard, where you can manage your logs and projects.
Create a Project
After logging in, create a new project within the dashboard. When you create a project, an API key will be generated automatically for you. This API key is essential for authenticating and sending logs to LogHub via the REST API.
Send Your First Log
Once your project is set up, go to the Getting Started section of the dashboard. Here, you’ll find a simple curl example that you can copy and run directly in your terminal. This example demonstrates how to send your first log to LogHub using your API key.
curl --request POST \
--url https://api.loghub.cloud/log \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'User-Agent: cURL-Client/1.0.0' \
--data '{
"function": "Test Funktion",
"message": "Testnachricht",
"type": 0
}'
Simply replace YOUR_API_KEY with the API key generated for your project, and you’re ready to go. Run this in your terminal, and you’ll see the log appear in the LogHub dashboard instantly.