curl request. This one proves the other half: that a real log shipper,
Vector, can actually feed it. This is what shipping
logs into ObsidianLog from a real application looks like day to day.
Takes about ten minutes, most of it installing Vector.
1. Get the binary
If you haven’t already, download and extract the release binary for your system. Installing a release binary in the Quickstart has the full walkthrough, or the FAQ if you’re not sure which file to grab.2. Install Vector
Vector isn’t part of ObsidianLog, it’s a separate, independently maintained log shipper. Follow Vector’s own installation instructions for your platform, then confirm it’s on yourPATH:
3. Set up ObsidianLog
obsidianlog serve
from an earlier tutorial is probably still running on port 7080, stop that
one first (or add --bind 127.0.0.1:7081 here and update the URL in the
Vector config below to match).
Leave it running and open a new terminal for the rest of this tutorial.
4. Create something for Vector to tail
Vector needs a real file to watch. In yourvector-test folder:
5. Write a Vector config
Save this asvector.toml in the same folder:
crates/obsidianlog-ingest/examples/vector.toml
in the repo, trimmed down for this tutorial.
6. Run Vector
app.log, parses it, and posts it to
ObsidianLog within a second or two (batch.timeout_secs = 1 above keeps
this quick for the tutorial, a real deployment would usually use a longer
window). Leave Vector running, then open a third terminal, cd into the
same vector-test folder, and append a second line to prove Vector is
actually watching the file, not just reading it once:
7. Query and verify
Back in that samevector-test folder:
Tell us how it went
Please open a feedback report either way, especially if Vector’s config or install process didn’t match what’s described here. Vector is maintained independently of ObsidianLog, so its exact install steps can change without any of us noticing right away.What’s next
Once you’re done testing, Sending Logs with Vector covers the full config reference for wiring this into a real, ongoing deployment rather than a scratch test folder. When you finish the tutorial, stop Vector and return to the terminal runningobsidianlog serve and press Ctrl-C.