Skip to content

Syscheck - how to monitor directory without subdirectories #1595

@alextodicescu

Description

@alextodicescu

Hi,

I'm trying to determine if it's possible to configure ossec syscheck to only monitor the current directory, without it's subdirectories.
For example, say we have the current filesystem structure
/
/dir1/
/dir1/file1
/dir1/dir2/
/dir1/dir2/file2

I would like to monitor the files in /dir1, so I will configure syscheck with the following:
<directories check_all="yes">/dir1</directories>

However, this will also monitor subdirectories of /dir1. I've tried a few options using <ignore> statement without any luck.

Appreciate any help here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions