Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi. I am trying to troubleshoot logstash not collecting nginx logs. I followed the tutorial on setting up elasticsearch, kibana and logstash now this one, but the nginx logs don’t seem to be flowing through.
Is this logstash-forwarder config correct?
"network": {
"servers": [ "localhost:5000" ],
"timeout": 15,
"ssl ca": "/etc/pki/tls/certs/logstash-forwarder.crt"
},
"files": [
{
"paths": [
"/var/log/syslog",
"/var/log/auth.log"
],
"fields": { "type": "syslog" }
}
{
"paths": [
"/var/log/nginx/ElasticSearch01.access.log"
],
"fields": { "type": "nginx-access" }
}
]
Thanks Jock
@jock.forrester: There’s a missing comma between the two “paths” objects. Try using this instead:
"network": {
"servers": [
"localhost:5000"
],
"timeout": 15,
"ssl ca": "/etc/pki/tls/certs/logstash-forwarder.crt"
},
"files": [
{
"paths": [
"/var/log/syslog",
"/var/log/auth.log"
],
"fields": {
"type": "syslog"
}
},
{
"paths": [
"/var/log/nginx/ElasticSearch01.access.log"
],
"fields": {
"type": "nginx-access"
}
}
]
Hi, I’m using cisco ASA 5505. When i enter to /opt/logstash/patterns/firewalls i dont find the ASA 5505. Also i cant change the option … All I want is to have ip source ; ip destination ; port source ; port destination as field in kabana. Thanks
{“message”:“<166>Aug 20 2014 05:51:34: %ASA-6-302014: Teardown TCP connection 8440 for inside:192.168.2.209/51483 to outside:104.16.13.8/80 duration 0:00:53 bytes 13984 TCP FINs\n”,“@version”:“1”,“@timestamp”:“2014-08-20T14:17:58.452Z”,“host”:“192.168.2.1”,“tags”:[“_grokparsefailure”],“priority”:13,…
@sammdoun: Assuming your message is (and the rest of the relevant logs are similar):
<166>Aug 20 2014 05:51:34: %ASA-6-302014: Teardown TCP connection 8440 for inside:192.168.2.209/51483 to outside:104.16.13.8/80 duration 0:00:53 bytes 13984 TCP FINs\n
The following pattern should match and name the fields you specified:
<%{INT}>%{MONTH} %{MONTHDAY} %{YEAR} %{TIME}: %{GREEDYDATA}inside:%{IP:source_ip}/%{INT:source_port} to outside:%{IP:destination_ip}/%{INT:destination_port}
I’m assuming the first IP/port is source and the second is destination.
Can you see anything wrong with my logstash-forwarder config? Logs are not sent when configured as follows;
{
"network": {
"servers": [ "host:5000" ],
"timeout": 15,
"ssl ca": "/etc/pki/tls/certs/logstash-forwarder.crt"
},
"files": [
{
"paths": [ "/var/log/apache2/*.log" ],
"fields": { "type": "apache-all" }
},
"files": [
{
"paths": [
"/var/log/syslog",
"/var/log/auth.log"
],
"fields": {
"type": "syslog"
}
}
]
}
Logs are sent ok when it is configured as follows;
{
"network": {
"servers": [ "host:5000" ],
"timeout": 15,
"ssl ca": "/etc/pki/tls/certs/logstash-forwarder.crt"
},
"files": [
{
"paths": [ "/var/log/apache2/*.log" ],
"fields": { "type": "apache" }
}
]
}
@manicas ! thank you verry much ! i’m working on SIEM project and you really help me. Actually the system used to work two weeks ago, but now i have an error message which is " Oops! SearchPhaseExecutionException[Failed to execute phase [query], all shards failed]" i think it’s due to server private ip adress, because it’s dhcp, i’ve generated another ssl certificate, with the new adress, but i still have this error ! can you help me please !