Skip to content

Commit 8e3871c

Browse files
GIT-15 - Resolves an issue where GoatSearch instantiates multiple searches but only executes on one.
1 parent 5e398a0 commit 8e3871c

3 files changed

Lines changed: 22 additions & 12 deletions

File tree

bin/goatsearch.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,18 @@ def generate(self):
265265
yield evt
266266

267267
else:
268+
if self.query or self.sid:
269+
self._prepare_event_search()
270+
271+
if self.page:
272+
self.api_limit = int(self.page)
273+
268274
if not self.job_id:
269275
for evt in self.event_log:
270276
yield evt
271277

272278
return
279+
273280
while not self.job_complete:
274281
status_uri = '%s/%s/status' % (
275282
self.baseuri,
@@ -417,6 +424,9 @@ def generate(self):
417424
if latest_seen > 0 and latest_seen == 0:
418425
self.metadata.searchinfo.latest_time = latest_seen
419426

427+
if self.debug:
428+
for evt in self.event_log:
429+
yield evt
420430

421431
def prepare(self):
422432
user = self._metadata.searchinfo.username
@@ -447,10 +457,4 @@ def prepare(self):
447457
# it could be a variable for a coming feature.
448458
self.search_context = 'default_search'
449459

450-
if self.query or self.sid:
451-
self._prepare_event_search()
452-
453-
if self.page:
454-
self.api_limit = int(self.page)
455-
456460
dispatch(goatsearch, sys.argv, sys.stdin, sys.stdout, __name__)

default/app.conf

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
# VisiCore GoatSearch version 1.0.10 (38)
2-
# app.conf: packaged 07/15/2025 by Duck Yeah! version 3.0.0
1+
# VisiCore GoatSearch version 1.0.10 (39).
2+
# app.conf: packaged at 15:16:26 on 07/17/2025 by Duck Yeah! version 3.0.0.
33
# Please do not modify this header manually. It is required by Duck Yeah!.
44
#
55
# Want Duck Yeah!? Download from Splunkbase: https://splunkbase.splunk.com/app/7015
66
#
77
# Contributors:
88
# +Paul Stout <paul@inversetachyon.com>
9+
#
10+
# Implements:
11+
# @GIT-15
912

1013
[author=Paul Stout]
1114
company = VisiCore Tech
@@ -16,9 +19,9 @@ name = GoatSearch
1619
version = 1.0.10
1720

1821
[install]
19-
build = 38
22+
build = 39
2023
is_configured = 0
21-
install_source_checksum = eb176c55eb9a938ae653d77c766a22164ab42e83
24+
install_source_checksum = 10a60a0d822eeb47b6425a7e07f6aee6b93c707c
2225

2326
[launcher]
2427
author = Paul Stout <paul@visicoretech.com>

metadata/default.meta

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
# VisiCore GoatSearch version 1.0.10 (38)
2-
# default.meta: packaged 07/15/2025 by Duck Yeah! version 3.0.0
1+
# VisiCore GoatSearch version 1.0.10 (39).
2+
# default.meta: packaged at 15:16:26 on 07/17/2025 by Duck Yeah! version 3.0.0.
33
# Please do not modify this header manually. It is required by Duck Yeah!.
44
#
55
# Want Duck Yeah!? Download from Splunkbase: https://splunkbase.splunk.com/app/7015
66
#
77
# Contributors:
88
# +Paul Stout <paul@inversetachyon.com>
9+
#
10+
# Implements:
11+
# @GIT-15
912

1013
[]
1114
access = read : [ * ], write : [ admin, sc_admin ]

0 commit comments

Comments
 (0)