Archived Data Files Read Options

Hi guys,

I am interested in specifying an Archive Directory for our openHistorian instance. I understand that the application will now archive data to the the specified archive drive, but I am a little confused about how to continue to access the archived data. Do I have to specify a ‘connection string parameter’ to read archived data in openHistorian? Does changing the archive data drive affect displaying data in Grafana?

Hi jarurlaj,

To change the archive directories, all you should need to do is update the connection string parameter in the PPA historian instance.

  • Launch openHistorian Manager
  • Navigate to Outputs > Historian Instances
  • Select the PPA record from the list of historian instances
  • Add ArchiveDirectories=C:\path\to\archive\folder to the connection string. I recommend against specifying the root of a drive as the location for archive directories. Always add a subfolder, such as ArchiveDirectories=F:\Archive instead of ArchiveDirectories=F:\.
  • Click the Save button
  • Click the Initialize button and select Yes when prompted

The openHistorian web interface and Grafana both read data from the openHistorian’s local archival adapter, which handles both reading and writing. You shouldn’t need to do anything else to read data once the archive location has been moved.

If you have existing data in the old location that you want to keep, you can simply move the files from the old location to the new location. If you do not want to have to move your data to the new location, you also having the option of adding AttachedPaths=C:\path\to\old\archive to the connection string. By default, the application writes archive files to C:\Program Files\openHistorian\Archive.

Thanks,
Stephen