diff --git a/framework/scripts/wazuh-logtest.py b/framework/scripts/wazuh-logtest.py index 3b6223bbe69..e813dbd3edb 100755 --- a/framework/scripts/wazuh-logtest.py +++ b/framework/scripts/wazuh-logtest.py @@ -13,6 +13,7 @@ import atexit import struct import textwrap +from wazuh.core.common import LOGTEST_SOCKET def init_argparse(): @@ -218,7 +219,7 @@ def __init__(self, location="stdin", log_format="syslog"): log_format (str, optional): type of log. Defaults to "syslog". """ self.protocol = WazuhDeamonProtocol() - self.socket = WazuhSocket('/var/ossec/queue/ossec/logtest') + self.socket = WazuhSocket(LOGTEST_SOCKET) self.fixed_fields = dict() self.fixed_fields['location'] = location self.fixed_fields['log_format'] = log_format