All Versions
- DSpace 7.x (Current Release)
- DSpace 8.x (Unreleased)
- DSpace 6.x (EOL)
- DSpace 5.x (EOL)
- More Versions...
...
With the release of DSpace 1.6, new statistics software component was added. DSpace's use of SOLR for statistics makes it possible to have a database of statistics. This in mind, there is the issue of the older log files and how a site can use them. The following command process is able to convert the existing log files and then import them for SOLR use. The user will need to perform this only once.
The Log Converter program command converts log files from dspace.log into an intermediate format that can be inserted into SOLR.
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="434ea74cf1a252b3-f01cc900-49004ee1-8dcdb36a-2c73f6a95682c1df70a3ebda"><ac:plain-text-body><![CDATA[ | Command used: | | ]]></ac:plain-text-body></ac:structured-macro> |
Java class: | org.dspace.statistics.util.ClassicDSpaceLogConverter | ||
Arguments short and long forms): | Description | ||
| Input file. Read from standard input if omitted or "-". | ||
| Output file. Written to standard output if omitted or "-". | ||
| Adds a wildcard at the end of input and output, so it would mean dspace.log* would be converted. (For example, the following files would be included because of this argument: dspace.log, dspace.log.1, dspace.log.2, dspace.log.3, etc.) | ||
| If the log files have been created with DSpace 1.6 | ||
| Display verbose output (helpful for debugging) | ||
| Help |
The Log Importer command loads into SOLR the intermediate log files that have been created by the aforementioned script into SOLRLog Converter.
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="47508baa464695d8-3010b600-45544110-91998fca-100e904cdf4b16e61c104184"><ac:plain-text-body><![CDATA[ | Command used: | | ]]></ac:plain-text-body></ac:structured-macro> |
Java class: | org.dspace.statistics.util.StatisticsImporter | ||
Arguments (short and long forms): | Description | ||
| input file. Read from standard input if omitted or "-". | ||
| Adds a wildcard at the end of the input, so it would mean dspace.log* would be imported | ||
| To skip the reverse DNS lookups that work out where a user is from. (The DNS lookup finds the information about the host from its IP address, such as geographical location, etc. This can be slow, and wouldn't work on a server not connected to the internet.) | ||
| Display verbose ouput (helpful for debugging) | ||
| For developers: allows you to import a log file from another system, so because the handles won't exist, it looks up random items in your local system to add hits to instead. | ||
| Help |
...
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="4c05255598add6b9-b7748195-4cdd4c46-b96b840b-ec073dfae2e2ecde4f55c59a"><ac:plain-text-body><![CDATA[ | Command used: | | ]]></ac:plain-text-body></ac:structured-macro> |
Java class: | org.dspace.statistics.util.StatisticsClient | ||
Arguments (short and long forms): | Description | ||
| Update Spider IP Files from internet into | ||
| Delete Spiders in Solr By isBot Flag. Will prune out all records that have | ||
| Delete Spiders in Solr By IP Address. Will prune out all records that have IP's that match spider IPs. | ||
| Update isBog Flag in Solr. Marks any records currently stored in statistics that have IP addresses matched in spiders files | ||
| Calls up this brief help table at command line. |
...
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="fde2f61998f70073-fb442ec1-4a094ca8-9ab19343-45653fc7748634ac65a89225"><ac:plain-text-body><![CDATA[ | Command used: | | ]]></ac:plain-text-body></ac:structured-macro> |
Java class: | org.dspace.statistics.util.StatisticsClient | ||
Arguments (short and long forms): | Description | ||
| Run maintenance on the SOLR index. Recommended to run daily, to prevent your servlet container from running out of memory |
...