Page History
...
Property: | solr.log.server | ||||
Example Value: | solr.log.server = http://127.0.0.1/solr/statistics | ||||
Informational Note: | Is used by the SolrLogger Client class to connect to the Solr server over http and perform updates and queries. In most cases, this can (and should) be set to localhost (or 127.0.0.1).
Assuming you get an HTTP 200 OK response, then you should set | ||||
Property: | solr.spiderips.urls | ||||
Example Value: | solr.spiderips.urls =
| ||||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="07482378872986ce-f435eafe-4f514d1b-924c9965-e93085c0938ab74f4b24711d"><ac:plain-text-body><![CDATA[ | Informational Note: | List of URLs to download spiders files into [dspace]/config/spiders. These files contain lists of known spider IPs and are utilized by the SolrLogger to flag usage events with an "isBot" field, or ignore them entirely.
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="1612cbb7d57916b3-6ed4512e-400b4394-8e8d8a9f-4e9e849804b6ac814c1f46b8"><ac:plain-text-body><![CDATA[from your [dspace]/bin directory | ]]></ac:plain-text-body></ac:structured-macro> | ||
Property: | solr.dbfile | ||||
Example Value: | solr.dbfile = ${dspace.dir}/config/GeoLiteCity.dat | ||||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="23cb994043ce2a2d-79fa73fa-4d26410a-ba57a221-4602dff2a3146a8d6799674d"><ac:plain-text-body><![CDATA[ | Informational Note: | The following referes to the GeoLiteCity database file utilized by the LocationUtils to calculate the location of client requests based on IP address. During the Ant build process (both fresh_install and update) this file will be downloaded from [http://www.maxmind.com/app/geolitecity] if a new version has been published or it is absent from your [dspace]/config directory. | ]]></ac:plain-text-body></ac:structured-macro> | ||
Property: | solr.resolver.timeout | ||||
Example Value: | solr.resolver.timeout = 200 | ||||
Informational Note: | Timeout in milliseconds for DNS resolution of origin hosts/IPs. Setting this value too high may result in solr exhausting your connection pool. | ||||
Property: | useProxies | ||||
Example Value: | useProxies = true | ||||
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="e754a15eabddf3e1-d4d6f044-4ca0448d-b8e59bb3-10ad7dc7fca1f159d4f94f56"><ac:plain-text-body><![CDATA[ | Informational Note: | Will cause Statistics logging to look for X-Forward URI to detect clients IP that have accessed it through a Proxy service (e.g. the Apache mod_proxy). Allows detection of client IP when accessing DSpace. [Note: This setting is found in the DSpace Logging section of dspace.cfg] | ]]></ac:plain-text-body></ac:structured-macro> | ||
Property: | statistics.item.authorization.admin | ||||
Example Value: | statistics.item.authorization.admin = true | ||||
Informational Note: | When set to true, only general administrators, collection and community administrators are able to access the statistics from the web user interface. As a result, the links to access statistics are hidden for non logged-in admin users. Setting this property to "false" will display the links to access statistics to anyone, making them publicly available. | ||||
Property: | solr.statistics.logBots | ||||
Example Value: | solr.statistics.logBots = true | ||||
Informational Note: | When this property is set to false, and IP is detected as a spider, the event is not logged. | ||||
Property: | solr.statistics.query.filter.spiderIp | ||||
Example Value: | solr.statistics.query.filter.spiderIp = false | ||||
Informational Note: | If true, statistics queries will filter out spider IPs -- use with caution, as this often results in extremely long query strings. | ||||
Property: | solr.statistics.query.filter.isBot | ||||
Example Value: | solr.statistics.query.filter.isBot = true | ||||
Informational Note: | If true, statistics queries will filter out events flagged with the "isBot" field. This is the recommended method of filtering spiders from statistics. |
...
Modify line 178 in the StatisticsTransformer.java file
https://fisheye3.atlassian.com/browse/dspace/dspace/trunk/dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/statistics/StatisticsTransformer.java?r=HEAD#l178 dspace-xmlui/dspace-xmlui-api/src/main/java/org/dspace/app/xmlui/aspect/statistics/StatisticsTransformer.java
--6 is the default setting, displaying the past 6 months of statistics. When reducing this to a smaller natural number, less months are being displayed.
Related: http: //projects.dspace.org/apidocs/org/dspace/statistics/content/DatasetTimeGenerator.html#setDateInterval(java.lang.String, java.lang.String, java.lang.String) DatasetTimeGenerator Javadoc
Custom Reporting - Querying SOLR Directly
...