The naming convention for the audit persistence file is:
audit-<data_prefix>-<persistence_number>.xml
.
For example, an audit persistence file on the sample wine implementation
might look like this:
audit-wine-0.xml
.
This convention ensures that each Dgraph creates a unique file. It makes it possible to maintain the audit persistence files for numerous Dgraphs in an application in the same directory without contention.
By default, the audit persistence file is written to a directory called
persist that is located in the application’s working directory. To direct it
elsewhere, use the Dgraph flag
--persistdir
when you first create the Dgraph. Do
not move or rename this directory after it has been created.
You should not delete the audit persistence file or attempt to edit it manually. Upon startup, the Dgraph checks for the presence of this file, and if it cannot find it or read it, it issues a warning message and creates a new one. However, if you see such a warning message when you first create a Dgraph, you can safely disregard it.
Note
The auditing function adds information prefixed by the word Endeca.* to records. This namespace is reserved for administrative use and should not be used for other purposes.