ArcGIS Data Store generates log files that you can use to troubleshoot problems you might encounter with the data store.
Access log files
If the creation of the data store fails or you are unable to join a machine to an existing data store, verbose-level logs are written to <ArcGIS Data Store installation directory>\usr\logs\<machine name>\datastore on the computer where ArcGIS Data Store is installed. You can view these logs in a text editor to see why creating or joining a data store failed.
Once the data store is created and registered to a GIS Server site, logs for each data store machine are written to the <ArcGIS Data Store directory>\logs\<machine name> directory (default location is C:\arcgisdatastore\logs). ArcGIS Data Store does not create logs if the ArcGIS Data Store account does not have permission to create or write to the logs folder. If you don't want to give the ArcGIS Data Store account permissions to create folders, create the logs folder in advance and grant the ArcGIS Data Store account permissions to write to it.
You can use the View Logs module in ArcGIS Server Manager to view, query, configure, and delete the logs that are written to the logs directory. You can filter for data store logs in the View Logs module by choosing ArcGIS Data Store as the log source type. You can also search by the name of an individual data store machine or the name of a hosted feature service that has data in the data store.
Manage log files
ArcGIS Data Store includes command utilities that allow you to change how long log files are retained and where log files are created. To change the logging level, use ArcGIS Server Manager.
Change logging level
The logging level for ArcGIS Data Store logs is the same as the logging level for the GIS Server site with which it is registered. To change the logging level, log in to ArcGIS Server Manager and change the level of messages returned.
Change log file retention period
ArcGIS Server retains error logs, including ArcGIS Data Store error logs, for 90 days before they are deleted. If you don't want to keep the log files for that long, you can set a new retention period in ArcGIS Server Manager.
- Log in to ArcGIS Server Manager as an administrator.
- Open the Log Settings dialog box.
Logs > Settings
- Change the number next to Keep logs for at least.
- Click Save.
Change log file location
You can change the directory where error log files are created by running the changeloglocation utility and specifying a directory on the data store machine.
- Create a directory on the data store machine to use for log file storage.
- Grant the ArcGIS Data Store account read and write privileges to the directory.
- Run the changeloglocation utility, specifying the new directory for the log files.
In this example, log files will be created in c:\logfiles.
changeloglocation 'c:\logfiles'