solnlib 5.1.2__tar.gz → 5.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {solnlib-5.1.2 → solnlib-5.2.0}/PKG-INFO +1 -1
- {solnlib-5.1.2 → solnlib-5.2.0}/pyproject.toml +1 -1
- {solnlib-5.1.2 → solnlib-5.2.0}/solnlib/__init__.py +1 -1
- {solnlib-5.1.2 → solnlib-5.2.0}/solnlib/log.py +6 -2
- {solnlib-5.1.2 → solnlib-5.2.0}/LICENSE +0 -0
- {solnlib-5.1.2 → solnlib-5.2.0}/solnlib/_utils.py +0 -0
- {solnlib-5.1.2 → solnlib-5.2.0}/solnlib/acl.py +0 -0
- {solnlib-5.1.2 → solnlib-5.2.0}/solnlib/bulletin_rest_client.py +0 -0
- {solnlib-5.1.2 → solnlib-5.2.0}/solnlib/conf_manager.py +0 -0
- {solnlib-5.1.2 → solnlib-5.2.0}/solnlib/credentials.py +0 -0
- {solnlib-5.1.2 → solnlib-5.2.0}/solnlib/file_monitor.py +0 -0
- {solnlib-5.1.2 → solnlib-5.2.0}/solnlib/hec_config.py +0 -0
- {solnlib-5.1.2 → solnlib-5.2.0}/solnlib/modular_input/__init__.py +0 -0
- {solnlib-5.1.2 → solnlib-5.2.0}/solnlib/modular_input/checkpointer.py +0 -0
- {solnlib-5.1.2 → solnlib-5.2.0}/solnlib/modular_input/event.py +0 -0
- {solnlib-5.1.2 → solnlib-5.2.0}/solnlib/modular_input/event_writer.py +0 -0
- {solnlib-5.1.2 → solnlib-5.2.0}/solnlib/modular_input/modular_input.py +0 -0
- {solnlib-5.1.2 → solnlib-5.2.0}/solnlib/net_utils.py +0 -0
- {solnlib-5.1.2 → solnlib-5.2.0}/solnlib/orphan_process_monitor.py +0 -0
- {solnlib-5.1.2 → solnlib-5.2.0}/solnlib/pattern.py +0 -0
- {solnlib-5.1.2 → solnlib-5.2.0}/solnlib/server_info.py +0 -0
- {solnlib-5.1.2 → solnlib-5.2.0}/solnlib/splunk_rest_client.py +0 -0
- {solnlib-5.1.2 → solnlib-5.2.0}/solnlib/splunkenv.py +0 -0
- {solnlib-5.1.2 → solnlib-5.2.0}/solnlib/time_parser.py +0 -0
- {solnlib-5.1.2 → solnlib-5.2.0}/solnlib/timer_queue.py +0 -0
- {solnlib-5.1.2 → solnlib-5.2.0}/solnlib/user_access.py +0 -0
- {solnlib-5.1.2 → solnlib-5.2.0}/solnlib/utils.py +0 -0
|
@@ -79,7 +79,7 @@ class Logs(metaclass=Singleton):
|
|
|
79
79
|
_default_directory = None
|
|
80
80
|
_default_namespace = None
|
|
81
81
|
_default_log_format = (
|
|
82
|
-
"%(asctime)s
|
|
82
|
+
"%(asctime)s log_level=%(levelname)s pid=%(process)d tid=%(threadName)s "
|
|
83
83
|
"file=%(filename)s:%(funcName)s:%(lineno)d | %(message)s"
|
|
84
84
|
)
|
|
85
85
|
_default_log_level = logging.INFO
|
|
@@ -285,6 +285,7 @@ def events_ingested(
|
|
|
285
285
|
index: str,
|
|
286
286
|
account: str = None,
|
|
287
287
|
host: str = None,
|
|
288
|
+
license_usage_source: str = None,
|
|
288
289
|
):
|
|
289
290
|
"""Specific function to log the basic information of events ingested for
|
|
290
291
|
the monitoring dashboard.
|
|
@@ -296,6 +297,7 @@ def events_ingested(
|
|
|
296
297
|
sourcetype: Source type used to write event.
|
|
297
298
|
n_events: Number of ingested events.
|
|
298
299
|
index: Index used to write event.
|
|
300
|
+
license_usage_source: source used to match data with license_usage.log.
|
|
299
301
|
account: Account used to write event. (optional)
|
|
300
302
|
host: Host used to write event. (optional)
|
|
301
303
|
"""
|
|
@@ -310,7 +312,9 @@ def events_ingested(
|
|
|
310
312
|
|
|
311
313
|
result = {
|
|
312
314
|
"action": "events_ingested",
|
|
313
|
-
"modular_input_name":
|
|
315
|
+
"modular_input_name": license_usage_source
|
|
316
|
+
if license_usage_source
|
|
317
|
+
else modular_input_name,
|
|
314
318
|
"sourcetype_ingested": sourcetype,
|
|
315
319
|
"n_events": n_events,
|
|
316
320
|
"event_input": input_name,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|