From f229c6aa45d96ccc2536dcb56903ed6b9ab97a2b Mon Sep 17 00:00:00 2001 From: k_ Date: Wed, 18 Jan 2017 15:53:57 -0500 Subject: [PATCH] Remove Logstash search type. --- phplib/REST/Searches.php | 1 + phplib/Search.php | 2 +- phplib/Search/Logstash.php | 22 ---------------------- 3 files changed, 2 insertions(+), 23 deletions(-) delete mode 100644 phplib/Search/Logstash.php diff --git a/phplib/REST/Searches.php b/phplib/REST/Searches.php index 40acc3a..8980a3b 100644 --- a/phplib/REST/Searches.php +++ b/phplib/REST/Searches.php @@ -105,6 +105,7 @@ public function afterStore($model, $data, $new, $delete) { $syncjob['target_id'] = $model[Search::$PKEY]; $syncjob['target_date'] = $_SERVER['REQUEST_TIME']; $syncjob->store(); + // We don't want to schedule a Sync for every field that's changed. break; } } diff --git a/phplib/Search.php b/phplib/Search.php index 6422ad9..630dfd0 100755 --- a/phplib/Search.php +++ b/phplib/Search.php @@ -9,7 +9,7 @@ * @package FOO */ abstract class Search extends TypeModel { - public static $TYPES = ['Null_Search', 'ES_Search', 'Logstash_Search', 'ECL_Search', 'ThreatExchange_Search', 'Ping_Search', 'HTTP_Search', 'Alert_Search', 'Graphite_Search', 'Push_Search']; + public static $TYPES = ['Null_Search', 'ES_Search', 'ECL_Search', 'ThreatExchange_Search', 'Ping_Search', 'HTTP_Search', 'Alert_Search', 'Graphite_Search', 'Push_Search']; public static $TABLE = 'searches'; public static $PKEY = 'search_id'; /** @var bool Whether this Search type has multiple sources. */ diff --git a/phplib/Search/Logstash.php b/phplib/Search/Logstash.php deleted file mode 100644 index df5d428..0000000 --- a/phplib/Search/Logstash.php +++ /dev/null @@ -1,22 +0,0 @@ -