So I'm an all goner here. Got no clue where my mistake is.
Here's the deal:
I'm trying to input data from a csv file in Elasticsearch 2.3.2. The input, filter and output is done by Logstash 2.3.2.
The .csv file:
timeStamp,elapsed,label,responseCode,responseMessage,threadName,success,grpThreads,allThreads,Latency,Hostname,Connect
1464772797973,1082,http://test4,200,OK,ThreadGroup 1-1,true,2,2,318,DESKTOP-NS,166
1464772798501,1011,http://test4.com,200,OK,ThreadGroup 1-2,true,3,3,185,DESKTOP-NS,94
1464772799061,889,http://test4.com,200,OK,ThreadGroup 1-1,true,3,3,87,DESKTOP-NS,0
The test.conf of Logstash:
[code]
input {
file {
type => "csv"
path => [ "C:\result\results.csv"]
start_position => "beginning"
}
}
filter {
if [elapsed] == "label"
{
drop { }
}
csv {
columns => ["@jmeter_timestamp", "elapsed", "label", "responseCode", "responseMessage", "threadName",
"success", "grpThreads", "allThreads", "Latency", "Hostname", "Connect"]
separator => ","
}
date {
match => [ "@jmeter_timestamp", "UNIX_MS" ]
target => "@timestamp"
timezone => "Europe/Amsterdam"
remove_field => [ "jmeter_timestamp" ]
}
}
output {
elasticsearch {
hosts => ["http://192.168.43.51:9200"]
index => "jmeter-%{+YYYY.MM.dd}"
}
} [/code]
My Index mapping:
{
"template": "jmeter-*",
"settings": {
"number_of_shards": 1,
"number_of_replicas": 0,
"index.refresh_interval": "10s"
},
"mappings": {
"logs": {
"properties": {
"@timestamp": {
"type": "date",
"format": "yyyyMMdd'T'HHmmss.SSSZ"
},
"elapsed": {
"type": "integer"
},
"label": {
"type": "string"
},
"responseCode": {
"type": "integer"
},
"responseMessage": {
"type": "string"
},
"threadName": {
"type": "string"
},
"success": {
"type": "boolean"
},
"grpThreads": {
"type": "long"
},
"allThreads": {
"type": "long"
},
"Latency": {
"type": "long"
},
"ErrorCount": {
"type": "long"
},
"Hostname": {
"type": "string"
},
"Connect": {
"type": "long"
}
}
}
}
}
Kibana is showing no data from any timezone: http://i.imgur.com/OMsJTXz.png
The output of stdout of Logstash is showing the following:
http://i.imgur.com/yez54yD.png
I tried to remove, and re-add the index with no success.
Can anyone pin-point me to my mistake. Thanks