-1

I have an application in Java/Groovy and a Virtual Machine Appliance of Graylog running on VirtualBox.

How can I "make the connection" to store my logs on Graylog?

dvhh
  • 4,724
  • 27
  • 33
Heschoon
  • 2,915
  • 9
  • 26
  • 55
  • Probably over TCP. How have you configured the networking on the virtual machine? Does it have a static IP or DHCP, and if it's DHCP have you configured it to e.g. register itself with your DNS server with a domain name that you can use to reach it? – Rup Mar 30 '15 at 16:29
  • @Rup I did not do any of that. I'm looking for a "simple" way to use Graylog to store my logs, without having to make loose too much time on configuration. – Heschoon Mar 30 '15 at 18:03

1 Answers1

-1

Your are using this virtual machine. Assuming you need to create a new Graylog input and adapt the Logstash .conf to send logs with GELF:

  1. Go on the Graylog web interface
  2. Go in system/inputs section of the web interface
  3. create a GELF UDP input and give it a name
  4. Add the following line in your Logstash .conf, in the output section as follows:

    output {gelf {host => "my_VM_IP"}}

  5. Start your Logstash instance.

  6. Send a new log to Logstash.
  7. Search for the latest logs in the Graylog web interface to check that it was received.
Heschoon
  • 2,915
  • 9
  • 26
  • 55