How deep do your subdirectories go?
/var/log/basedir/*.log /var/log/basedir/*/*.log {
daily
rotate 5
}
Will rotate all .log files in basedir/ as well as all .log files in any direct child of basedir. If you also need to go 1 level deeper just add another /var/log/basedir/*/*/*.log
until you have each level covered.
This can be tested by using a separate logrotate config file which contains a constraint that will not be met (a high minsize) and then running log rotate yourself in verbose mode
logrotate -d testconfig.conf
the -d flag will list each log file it is considering to rotate.
Related Posts:
- rm on a directory with millions of files
- api-ms-win-crt-runtime-l1-1-0.dll is missing when opening Microsoft Office file [closed]
- Istio Ingress resulting in “no healthy upstream”
- What is a LAMP stack?
- What is the difference between POST and PUT in HTTP?
- What and where are the stack and heap?
- What is a reverse shell?
- Why am I getting error for apple-touch-icon-precomposed.png
- ‘git’ is not recognized as an internal or external command
- What are the rules of the std::cin object in C++?
- ssh remote host identification has changed
- How to link to part of the same document in Markdown?
- How do I list all files of a directory?
- Where do I find a list of all mat-icons — Angular
- TypeError : ‘method’ object is not subscriptable
- In C++, what is wx.h?
- How to UPSERT (MERGE, INSERT … ON DUPLICATE UPDATE) in PostgreSQL?
- What is the difference between allFile and allMarkdownRemark in gatsby
- How to clamp an integer to some range?
- What is the iOS 8 System Font?
- How to create a directory using Ansible
- PHP &$string – What does this mean?
- java.util.NoSuchElementException: No line found
- Simple prime number generator in Python
- Update Git branches from master
- declaring a priority_queue in c++ with a custom comparator
- SonarQube Runner vs Scanner
- You cannot add or change a record because a related record is required in table ‘table_name’
- How to create a directory in Java?
- Error in glm() in R
- Is there an online application that automatically draws tree structures for phrases/sentences?
- Create new tmux session from inside a tmux session
- classic ASP error ‘80020009’ Exception occurred
- Disable Chrome pinch zoom for use in kiosk
- How to ‘minify’ Javascript code
- Error haskell: not in scope. What does that mean?
- Python High Pass Filter
- How to disable text selection highlighting
- if-not condition fails (jQuery)
- RGBA code for red color
- java array error “array required but int found”
- this: Cannot use this in static context
- Fail to create Android virtual Device, “No system image installed for this Target”
- Warning: session_start(): Cannot send session cookie – headers already sent by (output started at [duplicate]
- Get all object attributes in Python?
- How to get the filename without the extension in Java?
- ifference between ibatis and mybatis
- How to install PyQt4 on Windows using pip?
- Example of realpath function in C
- Should 3rd Parties Use $wp_scripts/$wp_styles->add_data?
- Permalink Issues by Installing WordPress in Subdirectory / Subfolder
- How to show only parents subpages of current page item in vertical menu?
- Subfolder multisite issue. Themes and plugin files 404
- Filtering the Comment Form Allowed Tags
- Opendir and WordPress Path
- 2 wordpress blogs with 1 users table and 1 login
- bloginfo(‘template_directory’) img src
- Depth > 2 possible with multisite?
- Make a user administrator to a sub directory site and a contributor to main site in multisite network
- How do you modify the WordPress directory structure?
- get_query_var not working for subdirectory
- multisite subdomain behind reverse proxy
- Multisite Subdirectory with same domain subdomain
- Rewrite URLs for LeadPages due to subdirectory installation
- Is there function similar to wp_upload_bits() that will allow uploading to a specific path?
- Images loaded as background-image are shown but s aren’t
- Pulling Individual Posts from WP_Query
- How to check, if user commented before, on comment_post action?
- Can I use the same Folder name as a Multisite Blog?
- index.php file in wp-content/themes/ folder
- Building a Data Intensive Website with WordPress
- What A Pupil Learns From Writing An Argumentative Essay
- Sub-directory domain on subdomain multisite?
- Creating page-templates directory breaks everything!
- How do I get the path to the currently in use theme’s directory?
- Nested folder paths for WordPress multisite
- htaccess mod_rewrite not working
- Subdirectory and domain multisite installation
- Installed in root, want second in subdirectory
- Giving WordPress it’s own directory and using .htaccess Directory Index
- Ping a Specific Port
- How do I select which Apache MPM to use?
- What is this very short power cable called?
- How to use Let’s Encrypt DNS challenge validation?
- What are the different widely used RAID levels and when should I consider them?
- How can I read pcap files in a friendly format?
- Getting “Cannot ioctl TUNSETIFF tun: Operation not permitted” when trying to connect to OpenVPN
- How to tell if a Linux system is big endian or little endian?
- Using wget to recursively download whole FTP directories
- What firewall ports need to be open to allow access to external git repositories?
- Can Mac OS X be run inside Docker? [closed]
- Is Ping a reliable way to check if a server is available?
- How do I prevent apache from serving the .git directory?
- How to filter http traffic in Wireshark?
- Vagrant / VirtualBox DNS 10.0.2.3 not working
- How Often Do Windows Servers Need to be Restarted?
- sudoers: how to disable requiretty per user
- dig show only answer
- SSD or HDD for server
- Do you have any useful awk and grep scripts for parsing apache logs? [closed]