Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 33536bc

Browse files
author
Samuel Hassine
committed
[client] Implement method to get logs worker configuration
1 parent f73fab9 commit 33536bc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pycti/api/opencti_api_client.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,18 @@ def health_check(self):
235235
return False
236236
return False
237237

238+
def get_logs_worker_config(self):
239+
logging.info("Getting logs worker config...")
240+
query = """
241+
query LogsWorkerConfig {
242+
logsWorkerConfig {
243+
elasticsearch_url
244+
}
245+
}
246+
"""
247+
result = self.query(query)
248+
return result["data"]["logsWorkerConfig"]
249+
238250
def not_empty(self, value):
239251
if value is not None:
240252
if isinstance(value, str):

0 commit comments

Comments
 (0)