Single Node Deployment
Single Node Deployment
You can bring up a local Logship stack either with the native shell installer or with Docker Compose from the logship-deployments repository.
Native install by sh
This installs the Logship database, frontend, and agent together on a single Linux host with systemd.
curl -fsSL https://raw.githubusercontent.com/logship-io/logship-deployments/main/src/shell/install.sh | sh
# Open http://localhost:8000/setup in your browserUseful flags:
--pathto change the install directory (default:/opt/logship)--data-rootto change the data directory (default:/logship)--hostname,--database-port, and--frontend-portto change endpoints--overwriteto regenerate configs--no-installto download/configure without creating systemd services
To uninstall:
sudo /opt/logship/uninstall.shDocker Compose
This example uses the single-node compose stack from logship-deployments.
Scripts only
git clone https://github.com/logship-io/logship-deployments.git
cd logship-deployments
cd src/compose/single-node
docker compose pull
docker compose up -d
# Open http://localhost:8000/setup in your browserGuided
- Use git to clone a copy of the
logship-deploymentsrepository:
git clone https://github.com/logship-io/logship-deployments.git- Enter the repository and move to
src/compose/single-node:
cd logship-deployments
cd src/compose/single-node- Pull the latest images:
docker compose pull- Start the environment:
docker compose up -dTry it out
- Open up the local logship frontend at http://localhost:8000/setup.
- Follow the setup instructions to create a login for your new database.
- Try it out! Explore the query and alerts page. Check out how the page views chart on the homepage changes as you explore over time.
- Clean up with
docker compose down
Verify data flow end-to-end
- Send a sample event:
curl -X POST "http://localhost:5000/inflow/00000000-0000-0000-0000-000000000000" \
-H "Content-Type: application/json" \
-d '[{"schema":"demo.hello","timestamp":"'$(date -u +"%Y-%m-%dT%H:%M:%S.%NZ")'","data":{"message":"Hello from curl","value":42}}]'- Query it in the UI (Query page):
demo.hello
| where timestamp > ago(5m)
| project timestamp, message, value- Clean up:
docker compose down -v