Hacker News new | ask | show | jobs
by bobbob1921 1553 days ago
Nice work, I wanted to add how I deal with this. first my .bashrc Is setup to append and history is set to 100,000 lines.

Most importantly I have an alias set up for the letter h , that greps, case insensitive .bash_history. ( grep -i $1 .bash_history ).

So typing in the cli: # h awk gives me all my awk commands.

And second , as a global history search across all my VMs/instances, (as I already make extensive use of splunk and splunks universal forwarder log forwarding app/tool) , all vms have their splunk universal forwarder service set to send any updates to .Bash_history to my central spunk server. thus I’m able to globally search the bash history from any VM globally, going back forever (I search that via the splunk web gui i mean). All works great!