Graylog: Creating your first input in Graylog
This documentation is part of the Getting started guide. You can view the complete guide here: How to get started with Graylog.
👋 Welcome to Stackhero documentation
Stackhero offers a fully managed Graylog cloud solution designed for speed and simplicity. You can:
- Count on an unlimited, dedicated SMTP email server included with your service.
- Apply updates easily with a single click, with no manual intervention required.
- Use a custom domain name secured by HTTPS (for example, https://logs.your-company.com), providing your team with secure, direct access.
- Benefit from strong performance and security on a private, dedicated infrastructure with no shared resources or noisy neighbours.
Focus on your data, not your tools: you can get started with Stackhero's Graylog cloud hosting solution in just a few minutes.
An input is the entry point where Graylog receives your logs. You can send logs via TCP or UDP. Additionally, Graylog can collect log entries from an API, a Kafka queue, a RabbitMQ server, and other sources.
In this example, we will create a raw UDP input. To start, open the Graylog interface and go to "System" then "Inputs". Select "Raw/Plaintext UDP" and click on "Launch new input". Configure your input with the following values and submit the form:
- Node: Select your node
- Title: RAW UDP
- Port: 5555
Next, open a terminal on your computer and send a UDP message to your Graylog server. Make sure to replace XXXXXX with your service domain name:
- On macOS:
echo "Hello Graylog from UDP" | nc -u -w1 -c <XXXXXX>.stackhero-network.com 5555 - On Linux:
echo "Hello Graylog from UDP" | nc -u -w1 <XXXXXX>.stackhero-network.com 5555
After sending the message, return to Graylog and click on "Search". You should see your message 🎉
Congratulations, you have just sent your first message to Graylog! Feel free to create additional inputs and dashboards tailored to your needs. For further information, you may find Graylog's official documentation helpful.