FAQ: Relocating LogAnalysisInfo
How can I move the LogAnalysisInfo folder somewhere else?
Install Sawmill somewhere else, or make a symbolic link to LogAnalysisInfo, or put the pathname of the new location in the file LogAnalysisInfoDirLoc
Sawmill stores most of its data, including all internal databases, in a directory called LogAnalysisInfo. By default, this is in the same directory as the Sawmill binary. If you want it to be somewhere else, there are several options:
- Relocate the databases. Instead of relocating the whole LogAnalysisInfo directory, relocate only the databases, by changing the database directory location in the Database section of the Config section of the profile. Since most of the disk usage of the LogAnalysisInfo directory is due to databases, this provides most of the benefit of relocating LogAnalysisInfo, if disk usage is the issue.
Create a symbolic link (non-Windows only). This works only on non-Windows systems. If Sawmill is installed in a directory called /some/dir/sawmill, and you want LogAnalysisInfo to be at /some/other/dir/LogAnalysisInfo, you can do this from the command line:
mv /some/dir/sawmill/LogAnalysisInfo /some/other/dir ln -s /some/other/dir/LogAnalysisInfo /some/dir
This creates a symbolic link from the installation location to the new location of LogAnalysisInfo, which Sawmill will automatically follow. By the way, you can also just move LogAnalysisInfo to /var/sawmill/LogAnalysisInfo, and Sawmill will look for it there.
Create a file LogAnalysisInfoDirLoc (for Windows).This is a text file containing the location of the LogAnalysisInfo folder. This is most useful on Windows; on other platforms you can use a symbolic link, as described above. For instance, if you installed Sawmill in C:\Program Files\Sawmill 8, and want LogAnalysisInfo to be at E:\LogAnalysisInfo, you can move it from C:\Program Files\Sawmill 7\LogAnalysisInfo to the E: drive, and then create a text file (with Notepad) called LogAnalysisInfoDirLoc, no .txt extension, and type E:\LogAnalysisInfo as the contents of that text file. If Sawmill does not find a LogAnalysisInfo directory in the directory where it is running, it will look for that file, LogAnalysisInfoDirLoc, and it will look for LogAnalysisInfo in the location specified by the contents of that file.