Hi GambitK,

Could you tell me how to configure to send logs to graylog2 using logstash.

I tried this but graylog2 shouldn't receive logs

My graylog2-server address is 192.168.152.128. In graylog2-web-interface, I 
create a GELF HTTP input with bind_address is 192.168.152.128 and port is 
12201.

I use Logstash to output logs to graylog2.
i create logstash_shipper.conf with the content below

input {
 file {
  type => "apache_access"
  path => ["/var/log/httpd/webtest1.vn.joomla/**"]
 }
}

output {
 gelf {
  host => "192.168.152.128"
  port => 12201
 }
}

Then i run this: java -jar /usr/local/bin/logstash-1.3.2-flatjar.jar agent 
-f /etc/logstash_shipper.conf

Please help me!

Thanks very much!

On Friday, December 6, 2013 3:18:36 AM UTC+7, GambitK wrote:
>
> I'm sending old logs into graylog2 0.20 prevew 7 using logstash and the 
> timestamp field is being taken from the event itself, if I output to stdout 
> to check, I find that it's getting the correct date. But when I send them 
> to graylog2, it treats them with the timestamp of the received date.
>
> How can I tell graylog2 the event timestamp so that I can actually insert 
> the logs in the correct timeline?
>

-- 
You received this message because you are subscribed to the Google Groups 
"graylog2" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to