Log Insight 2.x: Automated Upgrade

If you are running multiple Log Insight instances or manage a Log Insight cluster you may be looking for a way to automate upgrades. Read on to learn a couple ways to achieve this today.

green-up-arrow

WARNING

Below I list a couple ways to automate upgrades. Please note neither approach is supported by VMware and one is really unsupported. In addition, the scripts are examples of how to go about performing the upgrades, but proper checks should be put in place to ensure the automation works properly. You know the drill, proceed at your risk!

“Supported”

The only supported way to upgrade Log Insight today is through the UI. Through a series of cURL commands this can be achieved today. While the script below is not technically supported, since it mimics the supported directions it should work without issue. Note that the script below works on a node-by-node basis and does not support entering maintenance mode (which technically means it is unsupported for clusters). CREDIT: My colleague Chris Todd outlined the script below.

Unsupported

Another approach is to upgrade via the CLI. The advantage to this approach is that you can easily determine all the nodes that need to be upgraded and perform a cluster upgrade from one command (you could with cURL, but need to parse the cluster page). Note this script assumes you have SSH keys configured on your nodes, you could also use something like sshpass or expect to authenticate.

© 2014 – 2015, Steve Flanders. All rights reserved.

Leave a Reply