Thanks pbroste for your info.
I am still getting "root:printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}" " every press of enter key.
thanks,
showing remote logs in dashboard
Re: showing remote logs in dashboard
Hello @exp-user1
In the previous message that I posted, we moved away from local7.notice @@Nagioslogserver-ip:5544 in our test configuration since we see that '/etc/rsyslog.conf' is already configured. In our test scenario we setup on the Log server instead of logging in '/var/log/syslog'. Went ahead and set it up so it would log to it's own log and named it: '/var/log/bash.log'. We then set up logrotation on the bash.log in ./etc/logrotation.d/.....'
Contents:
Here is the example: Let us know how things look,
Perry
In the previous message that I posted, we moved away from local7.notice @@Nagioslogserver-ip:5544 in our test configuration since we see that '/etc/rsyslog.conf' is already configured. In our test scenario we setup on the Log server instead of logging in '/var/log/syslog'. Went ahead and set it up so it would log to it's own log and named it: '/var/log/bash.log'. We then set up logrotation on the bash.log in ./etc/logrotation.d/.....'
Code: Select all
/etc/rsyslog.d/bash.conf
The local5.info change to level of log output, here is a list of some conditions:local5.info /var/log/bash.log
On the client side we added the following to '.bash_profile':notice Notice: normal but significant condition
info Informational: informational messages
debug Debug: debug-level messages
By moving the logging off of local7 and over to local5 removed this line ("root:printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}") that you are seeing.shopt -s histappend
PROMPT_COMMAND="history -a;$PROMPT_COMMAND"
trap 'logger -p local5.info -t bash -i -- "${USER}":"$BASH_COMMAND"' DEBUG
Here is the example: Let us know how things look,
Perry
You do not have the required permissions to view the files attached to this post.
Re: showing remote logs in dashboard
Thanks Perry for your help and time.
Re: showing remote logs in dashboard
Excellent, @exp-user1 I will go ahead and lock this up. Please let us know if you need anything further.
Thanks,
Perry
Thanks,
Perry