-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cron.php - Errno 8: Undefined index: logstash #74
Comments
Fixed! This should also resolve alerts not firing. |
Thanks! i.e. We use stats-, ossec- etc, but no logstash-: It seems that with this commit, logstash searches have been disabled all together? |
Ah. The process for doing this is terrible atm: #3. The alternative is to use the ECL search type. Ex: |
Thanks for the ECL workaround. |
I'm now getting: |
Found #23 |
Oh, I see. You can't currently provide a list of indices, but |
Issue #23 suggests replacing sqlite with mysql, but i wanted to stick with sqlite. yumdownloader --source sqlite yum install rpm-build redhat-rpm-config ncurses-devel readline-devel autoconf at line 128 add -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT=1 to the CFLAGS, i.e.: export CFLAGS="$RPM_OPT_FLAGS -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_DISABLE_DIRSYNC=1 -DSQLITE_ENABLE_FTS3=3 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -Wall -fno-strict-aliasing" rpmbuild -ba ~/rpmbuild/SPECS/sqlite.spec |
I can confirm the issue above also affects Fedora 24 (requiring a similar workaround), so Debian or Ubuntu might be an easier choice for those wanting to run 411 + sqlite. |
I don't remember why I put that |
Nice! :) |
Is this all good? |
Closing. Feel free to reopen if this is not resolved! |
I get this error if I run cron.php from the terminal:
/var/www/411/bin/cron.php
[+] Scheduler: 1476998611
[+] Maintenance
[+] Search Health
except [NONE] Errno 8: "Undefined index: logstash" at [/var/www/411/phplib/Search/Elasticsearch.php:38] 0:[FOO\Elasticsearch_Search::getConfig() called at [/var/www/411/phplib/Search/Elasticsearch.php:66]] 1:[FOO\Elasticsearch_Search->isWorking() called at [/var/www/411/phplib/Scheduler.php:341]] 2:[FOO\Scheduler->health() called at [/var/www/411/phplib/Scheduler.php:146]] 3:[FOO\Scheduler->processSite() called at [/var/www/411/bin/cron.php:45]]
except [NONE] Errno 8: "Undefined index: logstash" at [/var/www/411/phplib/ESClient.php:50] 0:[FOO\ESClient::getClient() called at [/var/www/411/phplib/Search/Elasticsearch.php:67]] 1:[FOO\Elasticsearch_Search->isWorking() called at [/var/www/411/phplib/Scheduler.php:341]] 2:[FOO\Scheduler->health() called at [/var/www/411/phplib/Scheduler.php:146]] 3:[FOO\Scheduler->processSite() called at [/var/www/411/bin/cron.php:45]]
[+] Rollups
[+] Searches
[+] Reports
[+] Summary
[+] Autoclose
[+] Cleanup
My config.php has no mention of a logstash index (since we don't use that default).
The only ocurrence of "logstash" as an index seems to be on: phplib/Search/Logstash.php
Also, not sure if related, but currently alerts don't fire unless someone presses execute in the webui.
Any help much appreciated. Thanks!
The text was updated successfully, but these errors were encountered: