Skip to content

Update Dump the content of a transaction log with clarifying steps #116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,26 +1,47 @@
= Dump the Contents of a Transaction Log
:slug: dump-the-contents-of-a-transaction-log
:zendesk-id: 205527958
:author: Dave Gordon
:neo4j-versions: 3.0,3.1,3.2,3.3,3.4,3.5,4.0,4.1,4.2
:author: Dave Gordon, Sandeep Reehall
:neo4j-versions: 3.0,3.1,3.2,3.3,3.4,3.5,4.0,4.1,4.2,4.3
:tags: transaction log
:category: operations

If there is a need to look through the transaction logs, particularly to see if/when a node or relationship (or property) with a given ID was touched, you will need to dump the log using the `DumpLogicalLog` tool.

The tools are available separately at https://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.neo4j%22%20AND%20a%3A%22neo4j-tools[the Maven Central Repository] prior to version 3.5.x. Download (or build) the correct tools jar for your Neo4j Version from there.

Starting with version 3.5.x, you can find the jar in the http://m2.neo4j.com/enterprise[Private Repository]
The username and password can be found https://support.neo4j.com/hc/en-us/articles/360012742113-Dependency-location-for-Neo4j-Enterprise-Edition-artifacts[here].
Starting with version 3.5.x, you can find the jar in the http://m2.neo4j.com/enterprise[Neo4j's Private Repository]

NOTE: Neo4j's Private Repository cannot be access via a web browser. You will need to install Maven and use mvn.

The steps to configure access to Neo4j's Private Repository can be found https://support.neo4j.com/hc/en-us/articles/360012742113-Dependency-location-for-Neo4j-Enterprise-Edition-artifacts[here].

The following dependency will need to be added to you pom.xml

```xml
<dependencies>
<dependency>
<groupId>com.neo4j</groupId>
<artifactId>neo4j-tools</artifactId>
<version>${neo4j.version}</version>
</dependency>
</dependencies>
```

This will download neo4j-tools-x.x.x.jar in to the local Mavan repository.

Place the jar in `$NEO4J_HOME\lib` and given a log file of neostore.transaction.db.1, run:

[source,shell]
For 3.5 and lower

[source,shell]
----
$ java -cp 'lib/*:system/lib/*:/usr/share/neo4j/lib/*' org.neo4j.tools.dump.DumpLogicalLog ./data/graph.db/neostore.transaction.db.1 > /tmp/dumptxlog_1.log
----

For 4.0 and higher

[source,shell]
----
$ java -cp 'lib/*:system/lib/*:/usr/share/neo4j/lib/*' com.neo4j.tools.dump.DumpLogicalLog ./data/transactions/<Your Database Here>/neostore.transaction.db.0 /tmp/dumptxlog_1.log
----
Expand Down