Box Data Source

Configuring SearchBlox

Before using Box Data Source, install SearchBlox successfully and create a Custom Collection.

1036

Configuring Box Application

  • Please go to dev console after logging in Box
1081
  • After opening Dev console create a new app
770
  • Create a custom app
1117
  • Select the third option “Standard OAuth 2.0 (User Authentication)”
858
  • Create App
774
  • When checking App configuration, please note down client ID and client Secret. These values have to be provided in box_connector.yml file
1104
  • Provide a redirect URI. Please use localhost and give a free port say 8085.
830
  • Save Changes

Steps to Configure and Run the Box Data Source

  • Download the SearchBlox Connector UI. Extract the downloaded zip to a folder.

Contact [email protected] to request the download link for SearchBlox Connectors UI. The following steps include the example paths for both Windows as well as Linux. In Windows, the connector would be installed in the C drive.

  • Unzip the archive under C:* or /opt*.
  • Create a data folder on your drive where the files would be temporarily stored.
  • Configure the following properties once you create a data source in the connector UI.

Accessing Connector UI

🚧

Note:

In Linux, make sure that necessary permissions have been provided to the folder /opt by using the CHMOD command for writing log files and executing jar files.

  • Configure the boxconnector.yml file which includes Box properties and SearchBlox properties as listed here:
usernameBox application User Name
passwordBox application Password
data-directoryData Folder where the data needs to be stored. Make sure it has write permission.
api-keySearchBlox API Key
colnameThe name of the custom collection in SearchBlox.
urlSearchBlox URL
authURLBox Authorization URL
https://app.box.com/api/oauth2/authorize
tokenURLBox API token URL
https://app.box.com/api/oauth2/token
redirectUrlBox redirect URI
clientIdBox App Client ID
clientSecretBox App Client Secret
exclude-foldersFolders to exclude in Box.
max-folder-sizeMaximum size of static folder after which it should be sweeped in MB.
servlet url & delete-api-url:Make sure that the port number is right. If your SearchBlox runs in 8080 port the URLs should be right.
log-file-maxSizeMegabytes after which new file is created
log-file-maxBackupNumber of backups after which log file should be deleted
log-file-maxAgeNumber of days after which log files should be deleted