To connect to the following websites in your web browser, you will need to first connect to the Jumphost/Airflow server:
Installation
These instructions are for MacOS. Instructions for Windows may vary.
- Download iTerm2
- Install the software
- Launch iTerm2
Connecting to JumpHost
- You may need to Set up an SSH Key in order to connect.
- In iTerm2, type:
ssh -D 1080 jumphost1.clarivoy.com - For instructions on setting up a profile for quick access, see Setting up iTerm Profiles.
Connecting to the Jobs Server
Most Airflow DAGs store log files on the Jobs server that can be used for researching technical issues.
- You may need to Set up an SSH Key in order to connect.
- In iTerm2, type:
ssh jobs-runner.clarivoy.com - For instructions on setting up a profile for quick access, see Setting up iTerm Profiles
Viewing Log Files on the Jobs Server
- In iTerm2, Once connected to the Job server, type:
cd ../clarivoyjobs/logs
lsThis will present you with a list of all available log files on the server. The file named [job].log will be the most recent, with [job].log.1 being the next most recent (further back), followed by [job].log.2, etc. with [job] representing the name of the log file.
- To view a specific log file, type:
tail -100000 [job].logwith [job] representing the name of the log file. This will allow you to view the most recent 100,000 rows in the log file.
If the log file is larger and you need to view more lines, adjust the 100000 in the command.
Once the log has been displayed, you can use CTRL+F to search the log file for the specific API key, subscription ID (CDK), property name, or property ID that you need.
Common Jobs Server Log Files
- etl_leads_preprocessing.log
- etl_sales_preprocessing.log
Setting Up iTerm Profiles
These instructions are for the MacOS version.
- iTerm2 menu
- Settings
- Profiles tab
- Click the + button in the bottom right corner to add a Profile.
- Fill in these details for the new profile:
-
General tab
- Name
- Command = Command
- Command string = your connect command for the server
e.g.ssh jobs-runner.clarivoy.com - Send Text at start = the commands you want iTerm to execute upon conneting to that server.
e.g. to view CallRevu logs on the Jobs server:cd ../clarivoyjobs/logs; tail -10000 callrevu_phone_api_pull.log
-
Colors tab - This is not necessary, but I like to use different colors for each Profile to help easily identify what I am looking at and to differentiate between the tabs.
- Defaults: Background = set a background color for the tab's terminal display (the background color behind the text)
- Scroll to the bottom and under Tab = I set a similar color for the tab and check “Use custom tab color”
-
Window tab - This is important so the tab created when you open the profile gets a unique name that helps identify it.
- New tabs: Check “Use custom title for new tabs using this profile” and enter a name for the tab (I use the same name as the profile name)
-
General tab
- You can choose to set a default profile that iTerm will open each time you start the app. I set my default as the Airflow/Jumphost server as that is the profile I use most often,
- On the left pane, select the profile you want as your default
- At the bottom, click “Other actions”
- Click “Set as Default”
- Now iTerm will open this tab each time you start the app.
- There is no Save button. Just close the dialog box to save.
Profile example
Here is an example of a profile I named CallRevu which will connect to the Jobs server and display the last 10,000 rows in the CallRevu Phone API log:
General

Colors


Window

Using iTerm Profiles
- in iTerm2 for MacOS, press Command + Shift + B to view the Profiles pane on the right side of the iTerm window.
- Double click on the profile you wish to open. It will open in a new tab (if you have “New tab” selected at the bottom of the Profiles tab; this is the default).
Common Terminal Commands
ls
-
ls= lists all log files
tail
-
tail -10000 <logname>= view 10000 lines of the log -
tail -10000 etl_leads_preprocessing.log= view 10000 lines of the leads preprocessing log -
tail -10000 etl_sales_preprocessing.log= view 10000 lines of the sales preprocessing log
less
-
less etl_leads_preprocessing.log= view beginning of leads preprocessing log, page by page -
less etl_sales_preprocessing.log= view beginning of leads preprocessing log, page by page - When running less:
- SHIFT+G = go to bottom of logs
- CTRL+F = find - search for “error”
- Q = quit