BroadSoft-Xtended / BroadWorks-Dashboards-and-Discovery

This repository contains the BroadWorks Dashboards and Discovery components to extend BroadWorks data mining, reporting, and analysis capabilities.
23 stars 4 forks source link

Sip Analyzer Question re: Names versus IP addresses #81

Open bfortune2 opened 5 years ago

bfortune2 commented 5 years ago

Is there a way to update the ip address labels in the Kibana Sip Analyzer to actual names rather than IP addresses?

parikshitgawali commented 5 years ago

Yes, you need to add host-name with IP in Elasticsearch directly.

Steps to add in Elasticsearch:

  1. Mapping : curl -X PUT "localhost:9200/servermapping?pretty" -H 'Content-Type: application/json' -d' { "mappings":{ "hostname":{ "properties":{ "server_ip":{"type":"keyword"}, "hostname":{"type":"keyword"} } } } } ' 2.Add Hostname and IP(You can add all your entries):

e.g. curl -X PUT "localhost:9205/servermapping/hostname/2" -H 'Content-Type: application/json' -d' { "server_ip" : "","hostname": "USER_A" } ' curl -X PUT "localhost:9205/servermapping/hostname/8" -H 'Content-Type: application/json' -d' { "server_ip" : "Execution Server","hostname": "AS" } '

Thanks, -Parikshit