The retention period for a repository is defined in seconds. In the example provided below, the retention period is being set to 604,800 seconds, or 7 days. After you make this change, the new retention period applies to newly streamed data.
When you set organization or repository quotas, the values you set must not exceed the values specified the max limits defined by your XRay license.
Use the following jKQL command to set the data retention period of a repository:
./jkool-cmd.sh -run -j:'alter repository "Test1" organization="Nastel", quota+=("Retention"=604800)' -C:http://localhost:8983 -U:Administrator -P:admin
Explanation of options
Option | Meaning |
---|---|
-run | Runs the specified jKQL script file |
-j | jKQL statement to execute |
-C |
Database connection URL (Defaults to java property 'jkool.db.url') |
-U |
jKool User (Defaults to Java property 'jkool.db.jkql.user'. If this is not set, you will be prompted for it.) |
-P |
jKool User Password (If this is omitted, you will be prompted for it.) |