Graylog: How to Import Apache LogFiles into the Graylog server -
i have specific need knowing how "import" log files receive graylog. need not 'sending' or configuring collector sending logs graylog.
i need know if can copy tar logs graylog , render content of via web ui of graylog.
i have read many blogs, , having difficulty finding guidance specific need.
your appreciated
so far know not possible import logs, can use fluentd(http://www.fluentd.org/guides/recipes/graylog2) read log-files.
but if want send logfiles apache graylog try this, add apache2.conf following lines:
logformat "{ \"version\": \"1.1\", \"host\": \"%v\", \"short_message\": \"%r\", \"timestamp\": %{%s}t, \"level\": 6, \"_user_agent\": \"%{user-agent}i\", \"_source_ip\": \"%a\", \"_duration_usec\": %d, \"_duration_sec\": %t, \"_request_size_byte\": %o, \"_http_status\": %s, \"_http_request_path\": \"%u\", \"_http_request\": \"%u%q\", \"_http_method\": \"%m\", \"_http_referer\": \"%{referer}i\" }" graylog2_access and add virtualhost file following lines:
customlog "|/bin/nc -u syslogserver.example.de 50520" graylog2_access also take here: https://serverfault.com/questions/310695/sending-logs-to-graylog2-server
Comments
Post a Comment