Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
7 replies
Subscribers
7 subscribers
Views
3844 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Administration
cleanup.sh logs
tatjanah
over 8 years ago
We have a cron job set up to cleanup our logs, but I noticed that perflogs isn't being included in the cleanup. Anyone else have this issue? The documentation I found doesn't elaborate which logs are included in the cleanup.sh script.
Here is what I have set up:
@midnight ...../cleanup.sh logs -delete -keep 7 >> /tmp/cleanup.log 2>&1
Yet I have way more than 7 files in my appianlogs/perflogs/*. Like the perf_monitor_db_CH1*.csv...
Feb 15 2016 perf_monitor_db_CH1_2016-02-01_0846.csv
Mar 4 2016 perf_monitor_db_CH1_2016-02-15_0808.csv
Mar 16 00:50 perf_monitor_db_CH1_2016-03-04_0839.csv
Mar 28 02:04 perf_monitor_db_CH1_2016-03-16_0553.csv
Apr 4 02:20 perf_monitor_db_CH1_2016-03-28_0709.csv
May 2 02:08 perf_monitor_db_CH1_2016-04-04_0935.csv
Jun 6 02:08 perf_monitor_db_CH1_2016-05-02_0712.csv
Jun 8 02:10 perf_monitor_db_CH1_2016-06-06_0715.csv
Jun 8 04:24 perf_monitor_db_CH1_2016-06-08_0719.csv
Jun 8...
OriginalPostID-233697
Discussion posts and replies are publicly visible
0
tatjanah
over 8 years ago
... 05:37 perf_monitor_db_CH1_2016-06-08_1010.csv
Jun 8 06:14 perf_monitor_db_CH1_2016-06-08_1049.csv
Jun 8 07:09 perf_monitor_db_CH1_2016-06-08_1123.csv
Jun 8 21:19 perf_monitor_db_CH1_2016-06-08_1405.csv
Jun 10 12:58 perf_monitor_db_CH1_2016-06-09_0227.csv
Jul 5 02:33 perf_monitor_db_CH1_2016-06-10_1802.csv
Aug 1 02:35 perf_monitor_db_CH1_2016-07-05_0738.csv
Sep 5 02:36 perf_monitor_db_CH1_2016-08-01_0743.csv
Sep 8 13:40 perf_monitor_db_CH1_2016-09-05_0747.csv
Thanks!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
nileshr889
over 8 years ago
Cleanup.sh script includes only application-server.log inside <APPIAN_HOME>\\logs folder.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sally Mason
Appian Employee
over 8 years ago
Have you checked the cron task has the correct permissions to be able to delete the files?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 8 years ago
1. Please check what Sally describes
2. If you review:
<APPIAN_HOME>\\server\\_scripts\\ant\\logs.xml, that file should have an entry for perflogs
<property name="perf" value="perflogs" />
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
tatjanah
over 8 years ago
Thanks for the comments! The cleanup was working for application-server.log just not perflogs. I checked the logs.xml and do not see that value listed. Is it normal for clients to add it manually? Or is it part of the cleanup.sh in future versions? We are on 7.10.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sally Mason
Appian Employee
over 8 years ago
No worries, happy to help! As Customers may put there logs in many different places, these options are available to configure as needed, also see
forum.appian.com/.../Data_Maintenance.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 8 years ago
Oh! that's the answer, you're on 7.10 but the feature of cleaning up perflogs was added in 7.11!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel