Skip to content

Instantly share code, notes, and snippets.

@douglascrp
Last active October 20, 2020 12:37
Show Gist options
  • Save douglascrp/ea427e37d1b9d1c4cdceb9c309798a7f to your computer and use it in GitHub Desktop.
Save douglascrp/ea427e37d1b9d1c4cdceb9c309798a7f to your computer and use it in GitHub Desktop.
Some useful commands to help analyse logs and understand what is going on with your Alfresco server
How to get a list errors:
=========================
cat catalina.out | egrep "(WARN|ERROR|Caused by)" | uniq > output.txt
How to count the errors by type:
================================
$ grep ERROR solr.log| awk '{print $4}'| sort | uniq -c
63 [org.alfresco.solr.tracker.AbstractTracker]
135 [org.apache.solr.core.SolrCore]
3 [org.apache.solr.util.ConcurrentLRUCache]
135 [org.quartz.core.ErrorLogger]
135 [org.quartz.core.JobRunShell]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment