Hi Barry,
What OS are you using?
Kibana extracts the agent name from OSSEC alerts, OSSEC uses internally the standard C function
gethostname() which call the function
uname(). The return of this function usually match the output of running
hostname in your terminal but not always.
You can change your instance hostname like this:
- Open the file /etc/hostname, edit it with your desire host name and save changes.
- Open the file /etc/hosts, edit it, write the same host that you chose before:
127.0.0.1 localhost your-host-name
You will need to reboot (sudo reboot) to apply changes.
Let's see if everything gone well, run "hostname" command on your terminal and check the agent name at OSSEC:
/var/ossec/bin/agent_control -i 000
I hope it helps, if you have any doubts don't hesitate to ask.
Regards,
Pedro S.