Skip to content

Commit

Permalink
Import wazuh-logtest socket name
Browse files Browse the repository at this point in the history
  • Loading branch information
Lopuiz authored and vikman90 committed Jan 19, 2021
1 parent 3e0d060 commit 1f43942
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion framework/scripts/wazuh-logtest.py
Expand Up @@ -13,6 +13,7 @@
import atexit
import struct
import textwrap
from wazuh.core.common import LOGTEST_SOCKET


def init_argparse():
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1f43942

Please sign in to comment.