As of the DSpace 6.0 release, Elasticsearch Usage Statistics are deprecated, and no new features/improvements will be added. We recommend instead using the default SOLR Statistics engine.
If you are already using Elasticsearch Usage Statistics, you may continue to use them until they are fully removed in a future release. See DS-2897 for more information.
Added in DSpace 3.0 is an optional statistics engine using Elasticsearch, which may be enabled as an alternative to the default SOLR Statistics engine (based on Apache SOLR). The motivation for adding Elasticsearch was to find an alternative statistics processing engine that would handle the workload of a large amount of statistics data. Additionally, the Elasticsearch statistics display offers another method for creating statistical queries against your data. Elasticsearch Usage Statistics has been contributed by Peter Dietz of Ohio State University's Knowledge Bank. The data source for Elasticsearch Statistics is DSpace Usage Events, where Usage Event is a view or download of a DSpace Object (Bitstream, Item Page, Collection Page, Community Page). Elasticsearch Statistics is bundled with DSpace, and requires no additional installation of software, it just needs to be enabled. Elasticsearch is only available for use with XMLUI.
Modify dspace/config/xmlui.xconf, and uncomment the aspect, Statistics Elasticsearch.
<!-- If you prefer to use "Elasticsearch" Statistics, you can uncomment the below aspect and COMMENT OUT the default "Statistics" aspect above. You must also enable the ElasticSearchLoggerEventListener. --> <!-- <aspect name="Statistics - Elasticsearch" path="resource://aspects/StatisticsElasticSearch/" /> -->
Modify dspace-xmlui/src/main/webapp/WEB-INF/spring/applicationContext.xml and uncomment the following code block for ElasticSearchLoggerEventListener
<!-- Elasticsearch --> <!--<bean class="org.dspace.statistics.ElasticSearchLoggerEventListener"> <property name="eventService"> <ref bean="dspace.eventService" /> </property> </bean>-->