Limit AF databases in AppSettings.json
- Last UpdatedMar 13, 2026
- 1 minute read
- CONNECT
- PI to CONNECT Agent
- Agents
- PI Server
By default, the agent uses all databases from the added AF server. However, you can limit the agent to using selected AF databases. This can reduce AF indexing scope and time.
-
Open an administrator command prompt and navigate to %ProgramData%\OSIsoft\PItoOCS.
-
Run the command:
notepad.exe appsettings.json
-
To specify databases for AF, modify the following entry:
"PIAssetFrameworkServerNames": [
{
"Name": "MyActualAFServerName",
"AlternateDisplayName": "AlternateDisplayName",
"ConnectionTimeout": 10,
"Databases": ["Database1", "Database2", "Database3"],
}
],
-
Save the changes and restart the PI to CONNECT Agent service with the commands:
net stop pitodatahubagent
net start pitodatahubagent