• DevOps
    Case Study

    How we built a resilient multi-account, multi-cloud solution for a Health Tech service provider!

    READ CASESTUDY
    icon

    24/7 DevOps as a Service

    Round-the-clock DevOps for uninterrupted efficiency.

    icon

    Infrastructure as a Code

    Crafting infrastructure with ingenious code.

    icon

    CI/CD Pipeline

    Automated CI/CD pipeline for seamless deployments.

    icon

    DevSecOps

    Integrated security in continuous DevOps practices.

    icon

    Hire DevOps Engineers

    Level up your team with DevOps visionaries.

    icon

    Consulting Services

    Navigate success with expert DevOps consulting.

  • TechOps
    Case Study

    How we built a scalable Odoo solution for a Travel Tech service provider!

    READ CASESTUDY

    WEB HOSTING SUPPORT

    icon

    HelpDesk Support

    Highly skilled 24/7 HelpDesk Support

    icon

    Product Support

    Boost your product support with our expertise.

    MANAGED SERVICES

    icon

    Server Management

    Don’t let server issues slow you down. Let us manage them for you.

    icon

    Server Monitoring

    Safeguard your server health with our comprehensive monitoring solutions.

    STAFF AUGMENTATION

    icon

    Hire an Admin

    Transform your business operations with our expert administrative support.

    icon

    Hire a Team

    Augment your workforce with highly skilled professionals from our diverse talent pool.

  • CloudOps
    Case Study

    How we helped a Private Deemed University in India, save US $3500/m on hosting charges!

    READ CASESTUDY
    icon

    AWS Well Architected Review

    Round-the-clock for uninterrupted efficiency

    icon

    Optimize

    Efficient CloudOps mastery for seamless cloud management

    icon

    Manage

    Automated CI/CD pipeline for seamless deployments

    icon

    Migrate

    Upgrade the journey, Migrate & Modernize seamlessly

    icon

    Modernize

    Simplify compliance complexities with our dedicated services

    icon

    FinOps as a Service

    FinOps as a Service

  • SecOps
    Case Study

    How we built a scalable Odoo solution for TravelTech service provider!

    READ CASESTUDY
    icon

    VAPT

    Vulnerability Assessment and Penetration Testing

    icon

    Source Code Review

    Ensuring source code security ans safe practices to reduce risks

    icon

    Security Consultation

    On demand services for improving server security

    icon

    System Hardening

    Reduced vulnerability and proactive protection

    icon

    Managed SoC

    Monitors and maintains system security. Quick response on incidents.

    icon

    Compliance as a Service

    Regulatory compliance, reduced risk

  • Insights
    Case Study

    How we helped a Private Deemed University in India, save US $3,500/m on hosting charges!

    READ CASESTUDY
    icon

    Blog

    Explore our latest articles and insights

    icon

    Case Studies

    Read about our client success stories

    icon

    Flipbook

    Explore our latest Flipbook

    icon

    Events

    Join us at upcoming events and conferences

    icon

    Webinars

    Watch our educational webinar series

  • Our Story
  • Contact Us

Interested to collaborate?

Get in touch with us!

Ready to elevate your business with certified cloud expertise? Contact us today to learn how our team can help you leverage cloud technology to drive growth, streamline operations, and enhance security.

  • AWSAWS
  • Azure CloudAzure Cloud
  • Google CloudGoogle Cloud
  • Akamai CloudAkamai Cloud
  • OVHOVH
  • Digital OceanDigital Ocean
  • HetznerHetzner
  • Kubernetes Consultancy Services
  • K8s & Cloud native Solutions
  • 24/7 Infrastructure Monitoring
  • DevOps as a Service
  • Cloud CI/CD Solutions
  • White Labeled MSP Support
  • Our story
  • Life@SupportSages
  • Insights
  • Careers
  • Events
  • Contact Us

Connect with us!


LinkedInFacebookXInstagramYouTube

aws partneraws advanced partner
SupportSages

Copyright © 2008 – 2026 SupportSages Pvt Ltd. All Rights Reserved.
Privacy PolicyLegal TermsData ProtectionCookie Policy
Cloudwatch logs to Wazuh

Cloudwatch logs to Wazuh

Rohit S

  • 3 min read
Cloudwatch logs to Wazuh

Generating audio, please wait...

AWS Cloudwatch Logs is a service that allows the users to centralize the logs from all their systems, applications, and AWS services in a single place.

AWS CloudWatch logs can be accessed by using the Wazuh CloudWatch Logs integration. The AWS API allows Wazuh to retrieve those logs, analyze them, and raise alerts if applicable.

AWS configuration

Take into account that the policies below follow the principle of least privilege to ensure that only the minimum permissions are provided to the Wazuh user.

To allow an AWS user to use the module with read-only permissions, it must have a policy like the following attached:

{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": "logs:DescribeLogStreams",
"Resource": "arn:aws:logs:region:account_ID:log-group:log_group_name:*"
},
{
"Sid": "VisualEditor1",
"Effect": "Allow",
"Action": "logs:GetLogEvents",
"Resource": "arn:aws:logs:region:account_ID:log-group:log_group_name:log-stream:log_stream_name"
}
]
}

Wazuh configuration

  1. Open the Wazuh configuration file (/var/ossec/etc/ossec.conf) and add the following configuration block to enable the integration with CloudWatch Logs:
<wodle name="aws-s3">
<disabled>no</disabled>
<interval>5m</interval>
<run_on_start>yes</run_on_start>
<service type="cloudwatchlogs">
<aws_profile>default</aws_profile>
<aws_log_groups>example_log_group</aws_log_groups>
<regions>us-east-1</regions>
</service>
</wodle>

2. Restart Wazuh in order to apply the changes

systemctl restart wazuh-manager

If you are configuring a Wazuh agent:

systemctl restart wazuh-agent

Now, login to Wazuh and you have to enable AWS module in the dashboard, for that follow the below steps.

  1. Login to Wazuh
  2. Select Wazuh

1_5v4rFPJdPN6MGG9HIDyQug.webp

3. Click the dropdown and select Settings -> Modules

1_8GvwAa45Vfq_bvXl7sQpBw.webp

Now you can see Amazon AWS enabled in your Wazuh Dashboard

1_h5k1Wk0rSb13pLwNeY88vg.webp

You can see your metrics/logs in AWS dashboard in Wazuh

1_Hh1dLn_3D3yK_Z-fwzJhIw.webp

Now, sometimes, you may face issues like when checking the logs in (/var/ossec/logs/ossec.log) the logs will be pulled into Wazuh but you may not be able to see it in Wazuh. This is an issue that is widely discussed and faced and I will also explain the workaround to pull the logs from Cloudwatch if you face the issue.

For that, you need to follow the below steps:

  1. You need to change logall_json no to yes in /var/ossec/etc/ossec.conf
<logall_json>yes</logall_json>

2. Then you need to edit /etc/filebeat/filebeat.yml and set archives enabled to true.

archives:
enabled: true

3. Restart both filebeat and wazuh

systecmtl restart filebeat
systemctl restart wazuh-manager

4. Go to Management -> Stack Maanagement

1_DZ7LZloL0gHCugZkKhBh7w.webp

5. Go to index patterns

1_MJVEwX-xI65RCBl4lvu_oA (1).webp

6. Create Index patterns

1_alDgCy2WnwckY8GwJTrYiA.webp

7. Create a new index pattern with name wazuh-archives-*

8. Select timestamp as the primary time field for use with the global time filter, then proceed to create the index pattern.

9. Open the menu and select Discover under OpenSearch Dashboards.

1_VnjP9wS_gkLFQvi_g4s_wQ.webp

Events should be getting reported there.

Effortlessly centralize logs from diverse sources with AWS CloudWatch Logs and Wazuh integration. Securely configure AWS and Wazuh for streamlined log analysis. Unlock enhanced visibility and effortlessly manage your AWS logs in Wazuh. Improve AWS log monitoring now!
 

  • AWS
  • DevOps

Continue Your Journey With…

DevOps as a Service

DevOps as a Service

Let us do the heavy lifting for you

Promotional banner
Promotional banner

A quick Guide on Wazuh installation in CentOS

A quick Guide on Wazuh installation in CentOS
  • DevOps
logo

Adding multiple target group to a single AWS ECS Service

Adding multiple target group to a single AWS ECS Service
  • AWS
  • DevOps
logo

AWS Cloudtrail Logs to Wazuh

AWS Cloudtrail Logs to Wazuh
  • AWS
  • DevOps
logo

Integrating Sonarqube with Jenkins in Ubuntu

Integrating Sonarqube with Jenkins in Ubuntu
  • AWS
  • DevOps
logo

Posts by Rohit S