Hi all
I'm trying to load in ES a SSH.cef file.
I'm used this configuration file for logstash
input {
tcp {
# The delimiter config used is for TCP interpretation
codec => cef { delimiter => "\r\n"}
port => 5000
type => syslog
}
}
filter {
To map the attacker Geo IP if plausible
geoip {
source => "sourceAddress"
}
To map the target Geo IP if plausible
geoip {
source => "destinationAddress"
}
To map the log producing device Geo IP if plausible
geoip {
source => "deviceAddress"
}
#Map startTime to @timestamp field
date {
match => ["startTime","MMM dd YYY HH:mm:ss"]
}
}
output {
elasticsearch {
Add host server ELK
hosts => ["server:9200"]
index => "cef-ssh-%{+YYYY.MM.dd}"
}
}
Then I started logstash and I don't see error. I loaded the data with the command
cat SSH.cef | nc localhost 5000
And the log of elastic search was ok.
Then I started kibana and create new index. If I see the data in discover I see this
And I don't use the Coordinate-Map for this error message
Could you help me to understand where is the error.
A line of the sample
CEF:0|Unix|Unix|5.0|cowrie.session.connect|New connection: 192.168.1.105:60740 (192.168.1.105:2222) [session: 6e99ac86]|Unknown|externalId=1 st
artTime=Nov 15 2016 19:18:21 destinationHostName=elastic_honeypot destinationAddress=192.168.20.2 deviceReceiptTime=Nov 15 2016 19:18:21 device
TimeZone=Z transportProtocol=TCP applicationProtocol=SSHv2 destinationServiceName=sshd devicePayloadId=1 message=New connection: 192.168.1.105:
60740 (192.168.1.105:2222) [session: 6e99ac86] destinationAddress=192.168.1.105 destinationTranslatedAddress=192.168.1.105 deviceTranslatedAddr
ess=192.168.1.105 deviceAddress=192.168.1.105 destinationTranslatedPort=2222 destinationPort=2222 categoryOutcome=None categoryBehaviour=cowrie
.session.connect sourceTranslatedAddress=192.168.1.105 sourceAddress=192.168.1.105 sourceTranslatedPort=60740 sourcePort=60740 deviceDirection=
1 cs1=0 cs1Label=isError cs2=cowrie.ssh.factory.CowrieSSHFactory cs2Label=system cs4=6e99ac86 cs4Label=session
Thank you
Franco