Locate Purging section of the Settings:
This will show a set of rules that can be applied to your components to control how the automatic midnight purge affects their logs. Purge Rules must be alphanumeric, and can support glob expressions, for example a rule with #lab* will match #labtest as well as #labprocedure1.
Purge Rules are matched in the order they appear in the table, if a component’s description contains multiple matches the first rule matched will apply.
Set up rules:
Click EDIT at the top right of the page. Then make a rule that all your components with #prod Never have their data purged and click Save:
Make another Purge Rule that channels with #device will be purged when they have 30 days of logs because they are chatty and click Save:
Make another Purge Rule for all your test components to be purged daily:
The first thing to do is label your test components with #test, to do this navigate to your Source and Destination component cards by double clicking them on the dashboard.
Edit the Tags field in the Component Card to add the #test rule (Make sure your Component is OFF).
Repeat the same 2 steps for the Source Component as well.
Go back to Purging in the Settings.
Add the rule for #test components to be purged daily and click Save:
A convenient way to limit the amount of logs stored by all components is to define a purge rule with * and configuring it to purge after a set number of days.