|
57 | 57 | # 20241015 relax syntax check for installation confirmation |
58 | 58 | # 20241020 change output order on essinstaller error check to make it easier to spot |
59 | 59 | # 20241020 more bracketed paste mode disabling |
| 60 | +# 20241203 rework test logic at end of setup to improve messages and add crash.log detection and print log if detected |
60 | 61 |
|
61 | | -VERSION="20241020b" |
| 62 | +VERSION="20241203a" |
62 | 63 |
|
63 | 64 | SCRIPTNAME="installes" |
64 | 65 |
|
@@ -554,20 +555,20 @@ echo_log "ES installed and setup run. Please check for errors in $SPLUNK_HOME/va |
554 | 555 | # INFO STAGE COMPLETE: "finalize" |
555 | 556 | # 2020-06-08 20:12:46,423+0000 INFO pid=29627 tid=MainThread file=essinstaller2.py:wrapper:82 | STAGE COMPLETE: "finalize" |
556 | 557 | # 2020-06-08 20:12:46,424+0000 INFO pid=29627 tid=MainThread file=essinstall.py:do_install:265 | Initialization complete, please restart Splunk |
557 | | -tail -5 $SPLUNK_HOME/var/log/splunk/essinstaller2.log | grep -q " STAGE COMPLETE: \"finalize\"" && echo_log "OK: STAGE complete finalize FOUND in $SPLUNK_HOME/var/log/splunk/essinstaller2.log. That is a good sign the install/upgrade went fine" || (tail -25 $SPLUNK_HOME/var/log/splunk/essinstaller2.log; fail_log "FAIL FAIL FAIL ********************: missing STAGE COMPLETE in $SPLUNK_HOME/var/log/splunk/essinstaller2.log : investigate please ************\nsee above last 25 lines of $SPLUNK_HOME/var/log/splunk/essinstaller2.log ") |
558 | | - |
559 | | - |
560 | | -# v4.x(or custom setting) : wait if need for threat list download |
| 558 | +if [ `tail -5 $SPLUNK_HOME/var/log/splunk/essinstaller2.log | grep -q " STAGE COMPLETE: \"finalize\""` ]; then |
| 559 | + echo_log "OK: STAGE complete finalize FOUND in $SPLUNK_HOME/var/log/splunk/essinstaller2.log. That is a good sign the install/upgrade went fine" |
| 560 | + echo_log "Finished" |
| 561 | + echo_log "Please login to web interface and verify that no errors are present" |
| 562 | + echo_log "This script has just done the initial ES setup, please continue with the rest of the ES installation guide steps as needed" |
| 563 | + echo_log "in particular, don't forget to : install/upgrade TA (forSH/, configure indexes for ES in org_all_indexes or org_es_indexes via CM for the version of ES used, tune the SH with appropriate scheduling and tuning for ES, tune indexers , ...." |
| 564 | +else |
| 565 | + tail -25 $SPLUNK_HOME/var/log/splunk/essinstaller2.log; fail_log "FAIL FAIL FAIL ********************: missing STAGE COMPLETE in $SPLUNK_HOME/var/log/splunk/essinstaller2.log : investigate please ************\nsee above last 25 lines of $SPLUNK_HOME/var/log/splunk/essinstaller2.log ") |
| 566 | + echo_log "looking for recent crash log files that could have happened during setup" |
| 567 | + find $SPLUNK_HOME/var/log/splunk -name "crash*" -mmin -5 -print |
| 568 | +fi |
561 | 569 |
|
562 | 570 | #echo "INFO: Restarting " |
563 | 571 | #${SPLUNK_HOME}/bin/splunk restart |
564 | 572 |
|
565 | 573 |
|
566 | | -# for v4.x |
567 | | -#echo "Finished. Please wait for threatlist to download if you need them and the instance is connected" |
568 | | -# v5.x |
569 | | -echo_log "Finished" |
570 | | -echo_log "Please login to web interface and verify that no errors are present" |
571 | | -echo_log "This script has just done the initial ES setup, please continue with the rest of the ES installation guide steps as needed" |
572 | | -echo_log "in particular, don't forget to : install/upgrade TA (forSH/, configure indexes for ES in org_all_indexes, deploy SA-For-indexer-minimal (exclude all the TA stuff) on indexers for the version of ES used, tune the SH with appropriate scheduling and tuning for ES, tune indexers , ...." |
573 | 574 |
|
0 commit comments