I am trying to get a list of all machine names that have logged into a certain server. Can anyone shed any light on this query? Thanks
Try this:
index=main splunk_server=your_server|stats count by host
Or you can try this one too:
index=main|stats count by splunk_server host