Wazuh agentless monitoring

846 views
Skip to first unread message

Utkarsh Bhargava

unread,
Sep 5, 2023, 3:48:33 AM9/5/23
to Wazuh mailing list
Hi Community,

I want to know, does Wazuh agent less monitoring (using SSH) also collects the logs or just Monitor files, directories, or configuration of an endpoint.
I was going through the documentation and didn't find the information about log monitoring using the Wazuh agent less.

Please help me with this query.

Best regards,
Utkarsh Bhargava
Sent from Mailspring

Stuti Gupta

unread,
Sep 5, 2023, 4:18:14 AM9/5/23
to Wazuh | Mailing List

Hi Uthkarsh.
Hope you are doing well toady and thank your for using wazuh.

Agentless monitoring refers to a type of endpoint monitoring that does not require the installation of an agent or software. This approach uses existing protocols to access and gather information from the monitored endpoint.
The Wazuh agentless monitoring capability uses the SSH (Secure Shell) protocol to collect and transfer events from endpoints to the Wazuh. The agentless monitoring is limited and does not provide all the capabilities contained in the Wazuh agent.  You can configure the Wazuh agentless monitoring module to monitor files, directories, and Cisco PIX firewall and router configurations. If there is a change to the monitored files and directories or the configuration of the firewall or router, this triggers an alert.
To know more about this you can refer to  https://documentation.wazuh.com/current/user-manual/capabilities/agentless-monitoring/index.html
To forward syslog events to your environment,   is better to use tools like rsyslog (https://www.rsyslog.com/) to forward the desired logs to the manager, and use logcollector to monitor the already forwarded logs. you can refer to https://documentation.wazuh.com/current/cloud-service/your-environment/send-syslog-data.html This is a common use case for network devices such as routers or firewalls. You can also refer to https://wazuh.com/blog/how-to-configure-rsyslog-client-to-send-events-to-wazuh/ for rsyslog forwarding logs

Hope this will be helpful. Please feel free to contact us for any information/issue

Saddique Khan

unread,
Sep 5, 2023, 9:19:50 AM9/5/23
to Wazuh | Mailing List
Hello Stuti,

                    I used agentless monitoring. I am getting logs from logstash with following configuration with the logstash plugin but it is not working and I don't see any logs in the system.

      input {
  # Input source for your syslog logs (adjust the port as needed)
  udp {
    port => 514
    type => "syslog"
  }
}

filter {
  if [type] == "syslog" {
    # Parse syslog messages with grok
    grok {
      match => { "message" => "%{SYSLOG5424PRI}%{NONNEGINT:syslog5424_ver} +(?:%{TIMESTAMP_ISO8601:timestamp8601}|%{TIMESTAMP_ISO8601:timestamp}Z) +(?:%{IPORHOST:logsource} )?%{SYSLOGHOST:hostname} +%{DATA:syslogtag} +%{GREEDYDATA:message}" }
      overwrite => [ "message" ]
    }

    # You can add more filters or transformations specific to your syslog messages here
  }
}

output {
  # Forward syslog messages to Wazuh manager
  tcp {
    host => "I_put_my_wazuh_manager_IP_Here"
    port => 1514
    codec => "json"
  }
}

Regards,
Saddique

Stuti Gupta

unread,
Sep 12, 2023, 2:02:22 AM9/12/23
to Saddique Khan, Wazuh | Mailing List
Hi Saddique.
We will be glad to help you with this issue, please open another thread for that same. For that Please check out https://wazuh.com/community/You can also refer to https://wazuh.com/blog/how-to-configure-rsyslog-client-to-send-events-to-wazuh/ for rsyslog forwarding logs.

Hope this will helps
Regards

--
You received this message because you are subscribed to a topic in the Google Groups "Wazuh | Mailing List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wazuh/Mr0h7dnv_dc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/0b968988-49bf-4510-9452-a882c3b144a8n%40googlegroups.com.

Saddique Khan

unread,
Sep 12, 2023, 5:11:09 AM9/12/23
to Wazuh | Mailing List
Hello Stuti Gupta,

            I have used this blog https://wazuh.com/blog/how-to-configure-rsyslog-client-to-send-events-to-wazuh/  for sending the logs from my docker container to Wazuh 514 manager IP port. However, I don't see any single reponse on agent 000. The ossec.conf creates 000 agent pod but they are monitoring my wazuh manager restart. No other logs. I want to send logstash logs to the wazuh manager for network event detections.  

         Please note that my wazuh cluster is running on nodes and i opened the 514 port on wazuh manager and wazuh worker services.

   I also joined the community but I didn't find anything related to it.

Regards,
Saddique
Reply all
Reply to author
Forward
0 new messages