My test setup is already feeding data intoElastic. I can see there is a host field showing the wan side IP but not all of my clients will have a static IP so I can't use that.
{
"_index": "netflow-2017.04.20",
"_type": "netflow",
"_id": "AVuJ8gcVIttyAWOS",
"_score": null,
"_source": {
"netflow": {
"output_snmp": 0,
"forwarding_status": {
"reason": 3,
"status": 3
},
"ipv4_src_host": "172.16.10.xxx",
"in_pkts": 1,
"ipv4_dst_addr": "172.16.10.111",
"first_switched": "2017-05-18T05:41:58.999Z",
"flowset_id": 257,
"l4_src_port": 64886,
"ipv4_dst_host": "172.16.10.xxx",
"version": 9,
"application_id": 0,
"flow_seq_num": 96,
"ipv4_src_addr": "172.16.10.xxx",
"in_bytes": 65,
"protocol": 17,
"flow_end_reason": 0,
"last_switched": "2017-05-18T05:41:58.999Z",
"input_snmp": 12,
"out_pkts": 1,
"out_bytes": 65,
"l4_dst_port": 53
},
"@timestamp": "2017-04-20T05:58:46.000Z",
"@version": "1",
"host": "xxx.xxx.xxx.xxx",
"type": "netflow"
},
"fields": {
"netflow.first_switched": [
1495086118999
],
"netflow.last_switched": [
1495086118999
],
"@timestamp": [
1492667926000
]
},
"sort": [
1492667926000
]
}
Or am I misunderstanding you?
As for the stoutput, do I put that in the output } and then run the .conf from the command line? Sorry if that seems like a dumb question but I'm very new to all this
edit: Even if there is a ID field or something like that, if all locations are feeding into the same index then there would still need to be some logic in Elastic filtering different locations to something, right?
With my test setup I can make my graphs and everything in Kibana and that appears to be working fine but it relies on things such as the SUM out.bytes in a given index. I haven't seen any options to do something like select SUM out.bytes from fields where host == myip.