I try to run a JSON file trough Logstash to index in Elasticsearch, but I can't seem to get it indexed. I don't get any error messages or anything. It says: "Logstash startup complete".
I have a conf file called "logstash-simple.conf" and it has this content:
input {
file {
path => "/Server.json"
}
}
output {
elasticsearch {
host => "localhost"
index => "Server"
}
}
And this is what I get in terminal:
Mariuss-MacBook-Pro:logstash-1.5.2 mariusmathisen$ bin/logstash -f logstash-simple.conf
jul 21, 2015 9:43:34 PM org.elasticsearch.node.internal.InternalNode <init>
INFO: [logstash-Mariuss-MacBook-Pro.local-9045-13456] version[1.5.1], pid[9045], build[5e38401/2015-04-09T13:41:35Z]
jul 21, 2015 9:43:34 PM org.elasticsearch.node.internal.InternalNode <init>
INFO: [logstash-Mariuss-MacBook-Pro.local-9045-13456] initializing ...
jul 21, 2015 9:43:34 PM org.elasticsearch.plugins.PluginsService <init>
INFO: [logstash-Mariuss-MacBook-Pro.local-9045-13456] loaded [], sites []
jul 21, 2015 9:43:37 PM org.elasticsearch.node.internal.InternalNode <init>
INFO: [logstash-Mariuss-MacBook-Pro.local-9045-13456] initialized
jul 21, 2015 9:43:37 PM org.elasticsearch.node.internal.InternalNode start
INFO: [logstash-Mariuss-MacBook-Pro.local-9045-13456] starting ...
jul 21, 2015 9:43:37 PM org.elasticsearch.transport.TransportService doStart
INFO: [logstash-Mariuss-MacBook-Pro.local-9045-13456] bound_address {inet[/0:0:0:0:0:0:0:0:9301]}, publish_address {inet[/10.0.1.6:9301]}
jul 21, 2015 9:43:37 PM org.elasticsearch.discovery.DiscoveryService doStart
INFO: [logstash-Mariuss-MacBook-Pro.local-9045-13456] elasticsearch/OWDC2YR- S066maKkSwbavQ
jul 21, 2015 9:43:40 PM org.elasticsearch.cluster.service.InternalClusterService$UpdateTask run
INFO: [logstash-Mariuss-MacBook-Pro.local-9045-13456] detected_master [Karla Sofen] [21jpaJ5_R3yRIEg8-jdcsw][Mariuss-MacBook-Pro.local][inet[/10.0.1.6:9300]], added {[Karla Sofen][21jpaJ5_R3yRIEg8-jdcsw][Mariuss-MacBook-Pro.local][inet[/10.0.1.6:9300]],}, reason: zen-disco-receive(from master [[Karla Sofen][21jpaJ5_R3yRIEg8-jdcsw][Mariuss-MacBook- Pro.local][inet[/10.0.1.6:9300]]])
jul 21, 2015 9:43:40 PM org.elasticsearch.node.internal.InternalNode start
INFO: [logstash-Mariuss-MacBook-Pro.local-9045-13456] started
Logstash startup completed
Here is an example of the content in the JSON file (machineID and name is changed for security reasons):
{
"machineID": 111111111,
"isVirtualMachine": true,
"name": "WHATEVER12",
"lastActivity": "2015-07-21T13:33:33",
"domain": "NO",
"deviceOS": "Microsoft Windows Server 2012 Standard",
"lastBoot": "2015-07-16T03:31:07",
"patchePlan": "Auto"
}, {
"machineID": 22222222,
"isVirtualMachine": true,
"name": "WHATEVER50",
"lastActivity": "2015-07-21T13:22:05",
"domain": "NO",
"deviceOS": "Microsoft Windows Server 2008 R2 Standard",
"lastBoot": "2015-07-16T22:00:36",
"patchePlan": "Auto"
}, {
"machineID": 333333333,
"isVirtualMachine": false,
"name": "WHATEVER02",
"lastActivity": "2015-07-21T13:19:43",
"domain": "NO",
"deviceOS": "Microsoft Windows Server 2012 R2 Standard",
"lastBoot": "2015-07-16T03:22:56",
"patchePlan": "Auto"
}
When I try to check in Kibana, Marvel or Head there is nothing indexed at all. Also, when I just try to check with a file output nothing happens.
So what am I doing wrong here? I have tried to read up on this, but I can't see where there is an error.