We have used a work around in the nmon2csv.py file then set the HOSTNAME=host. We couldn't find a way of making nmon output the FQDN
import socket
for line in data:
# Set HOSTNAME
#host = re.match(r'^(AAA),(host),(.+)\n', line)
host=socket.gethostname()
if host:
# HOSTNAME = host.group(3)
HOSTNAME = host
print("HOSTNAME:", HOSTNAME)
... View more
Does anybody know how to make NMON use the fully qualified host name rather than the shortened version?
We are currently tagging our instances by app-1.[environment].domain but nmon only uses the app-1 part of the hostname for most of the searched. I've seen the hostname is coming from the AAA file that gets generated but have been unable to track down where to amend the script.
I've edited the nmonhelper.sh script to HOST= hostname -f rather than hostname and done this to both the nmon and TA_nmon apps
All our hosts are ubuntu
... View more
Currently we are constantly pushing changes as more teams on-board with different log formats. It tends to be the inputs.conf and props.conf that are the only things changing.
Is splunk clever enough to know that a change has been made to an app after the restart and push it out based on what's defined in the serverclass file for the app?
... View more
I'm trying to get Splunk to reload the deployment server when we have updated our apps without having to manually go onto the box.
Basically we run a jenkins job that builds a version of our apps. It then ssh onto the deployment server and puts them into the /etc/deployment-apps folder. This all works but I can't get it to reload the apps using deploy-reload as it prompts for a username. I've tried to use -auth and pass in the credentials via an environment variable but it doesn't work. I've also created a script to do an expect when it prompts for the Splunk username: but can't get this to work either.
Has anyone got any ideas how we can implement this?
... View more