Troubleshooting

Troubleshoot Connect by using log files and the solutions to common issues. If you cannot resolve the issues, collect support information.

Collect logs

The information is saved as a ZIP file that you can download with your browser. The ZIP file is also known as a support bundle.

To download logs:

  1. From the Connect Overview page, click Help help.
  2. From the Troubleshooting tab, select the solutions for which to gather troubleshooting packages and click Create Package.
  3. When the package is ready, click Download Package. A ZIP file of Connect information, and database information if selected, downloads to the local download directory.
    Tip: Some browsers might block multiple downloads by default. Make sure to configure your browser to permit multiple downloads from Tanium Console.
  4. Contact Tanium Support to determine the best option to send the ZIP files. For information, see Contact Tanium Support.

Upgrading to Connect 5.18 or later

Note: If you have a Connect version earlier than 5.13.391 installed, upgrade to Connect 5.13.391 first. Verify that your environment properly updated. Sign in to Tanium Console as a Platform Administrator, then navigate to the Connect Overview page. A banner appears if any problems occurred during the upgrade to Connect 5.13.391. No banner appears if the upgrade completed without any problems. Then upgrade to the current Connect version.

Connect 5.18 increases the minimum required version for several feature-specific solution dependencies. When you upgrade to Connect 5.18 or later, also upgrade all feature-specific solution dependencies to the new minimum required version. For more information about minimum versions, see Solution dependencies.

If you upgrade to Connect 5.18, and have feature-specific solution dependencies that do not meet the minimum version, connections that use the solution as a source prior to upgrade attempt to run, but log a warning and might return partial data or fail.

Configure per-connection log level

When you troubleshoot a connection or want to limit unnecessary logging, you can configure a log level that applies only to that connection without affecting the global log settings.

  1. On the Connect Overview page, go to the Connections section. You have the following options:
    • Click Create Connection.
    • Click an existing connection. Then click Edit.
  2. In the General Information section, expand Advanced to configure the following settings:
    Log Level

    By default, Log Level is set to Information. To reduce the amount of logging, you can set Log Level to Warning, Error, or Fatal.

    Override Log Level

    If you are debugging the connection, select Override Log Level to set a Temporary Log Level (such as Trace or Debug) on this connection for a selected Number of Runs (up to 24). A scheduled or manual connection run, once started, counts towards the number of runs, regardless of the connection status. After the number of runs elapses, the logging for this connection returns to the Log Level you selected to prevent finer-grained logging from consuming additional resources for an indefinite number of runs.

    To use the Override Log Level option to collect a trace log, see Collect a trace log for a connection.

Collect a trace log for a connection

Use the Override Log Level option to collect a trace log for a single connection. You can review the trace log to debug the connection or upload the log to a support case.

  1. On the Connect Overview page, go to the Connections section. Click a connection, and then click Edit.
  2. In the General Information section, expand Advanced.
  3. Select Override Log Level to temporarily capture detailed log output for a set number of connection runs.
  4. Set Temporary Log Level to Trace.
  5. Set Number of Runs to 5.
  6. Click Save and Run.
  7. After the connection runs complete, click Download download_2.0 to the right of the connection log.
  8. Review the trace log or upload the log to a support case.

For more information about the Override Log Level option, see Configure per-connection log level.

Configure general log settings

Adjust log expiration

To adjust the number of days before log files are removed, click Settings cog on the Connect Overview page and navigate to the Configuration tab. Edit the number of days in the Connection Run Log Expiration field and click Save.

Adjust log level

To adjust the log level, choose a log level from the Connect Service Log Level menu and click Save.

View logs

Service logs

In a TanOS environment, the Connect service records logs in the /opt/Tanium/TaniumModuleServer/services/connect-files/server.log file. In a Windows environment, the Connect service records logs in the \Program Files\Tanium\Tanium Module Server\services\connect-files\logs\server.log file. This file is in JSON format by default, but you can use the Bunyan CLI tool to view the logs. For example, from the \Program Files\Tanium\Tanium Module Server\services\connect-files\ directory in a Windows environment, run the following command:

CODE
..\connect-service\node ..\connect-service\node_modules\bunyan\bin\bunyan logs\server.log

Search this log for the following message to tell when the Connect service starts:

CODE
Tanium Connect Starting

Connection run logs

Connections generate a log file for each run of the connection. In a TanOS environment, the run logs are in the /opt/Tanium/TaniumModuleServer/services/connect-files/logs/connections/ directory. In a Windows environment, the run logs are in the \Program Files\Tanium\Tanium Module Server\services\connect-files\logs\connections\ directory.

Connect configuration state

Connect stores information about connections and user settings in a database managed by the Tanium RDB Service.

Important: Do not directly access this database unless advised by Tanium Support. If you want to view this information, download a support package that includes database information. For more information, see Collect logs.

Test connections

You might have trouble running a connection for one of the following reasons:

  • The API token that Connect uses to run the connection was manually deleted or rotated

  • The user who owns the connection no longer has access to the connection

  • The persona used to run or schedule the connection is no longer associated with a user

You can sign in as the user that owns the connection and view the Connect Overview page, then run the connection outside of the scheduled intervals.

  1. Sign in as the user that owns the connection. From the Main menu, go to Modules > Connect > Overview.

    Wait several minutes before moving on to the next step.

  2. Send a test connection.
    Send a test connection from the Connect Overview page

    From the Connect Overview page, go to the Connections section. Select the checkbox next to the connection, click Run Now, and confirm to run the connection.

  3. Click the connection and open the Logs tab to view information about each run for that connection. Expand an individual row to view the log.
    Tip: If you need more log data, open the Details tab, update the Log Level value, and click Save. Run the connection again to view the log with the updated log level.
  4. If the IP address for a connection is on an internal network, only a Tanium administrator can run the connection by default.
    Example Configuration tab in Connect settings with the 'Inteneral IPs' option selected

    Click Settings cog on the Connect Overview page. On the Configuration tab, select Internal IPs to allow anyone to run connections to IPs on an internal network.

Troubleshoot issues

Note: If a connection fails to send any data in a 60-minute period, Connect automatically terminates the connection.

Issue: Cannot connect to Connect service

  1. Verify that the Connect service is running on your Module Server. Example Services window in Microsoft Windows To view the running services, click Start > Run. Type services.msc and click OK. Verify that Connect is in the list and that the service is running.

  2. Check the service logs for any errors or messages about insufficient rights for the user. In a TanOS environment, the Connect service records logs in the /opt/Tanium/TaniumModuleServer/services/connect-files/server.log file. In a Windows environment, the Connect service records logs in the \Program Files\Tanium\Tanium Module Server\services\connect-files\logs\server.log file.

Issue: Connection fails

There are multiple reasons that might cause connections to fail. When a connection fails, review the log of the connection to determine the reason why the connection failed:

  1. From the Main menu, go to Modules > Connect > Connections.

  2. In the row of the connection that failed, click the date in the Last Run Status column.

  3. Expand the log for a failed run to review any errors.

    Alternatively, click Download download_2.0 and review the log in your preferred editor.

Connection reached memory ceiling

Connect has a global memory ceiling of 8GB for all connections in addition to an individual limit that you can configure for each connection.

Symptom

When a connection reaches its individual memory ceiling, an error similar to the following appears in the log:

CODE
Connection Failed. The node process which was running this connection returned an exit code/status which indicates the process ran out of memory.

Resolution

Potential resolutions include the following:

  • Add filters to the connection to reduce the amount of data sent in the connection. For more information, see Reference: Filtering options.

  • Increase the memory ceiling of the connection.

    1. From the Main menu, go to Modules > Connect > Connections.

    2. Click the name of the connection to view details for the connection, and then click Edit.

    3. In the General Information section, expand the Advanced sub-section.

    4. Edit the Memory Ceiling as necessary and then click Save.

Issue: Connection does not export all intended data

Connections use the role permissions of the owner to access content. If the connection owner has insufficient permission for content that a connection requires, such as inability to view a computer group, the connection might not fully export the data that you intend to export.

To resolve, update the owner's permissions to allow access to intended content. For more information and descriptions of content sets and permissions, see RBAC overview.

Issue: Columns are missing from the Microsoft Azure Monitor table

Symptom

After a connection run completes successfully, one or more columns are missing from the custom table in Microsoft Azure Monitor. Connect does not report an error.

Cause

The streamDeclarations.columns array in your data collection rule (DCR) does not include all columns that Connect is sending. Microsoft Azure silently drops any column that is not declared in streamDeclarations.columns before the transformation runs. No error is logged on either the Connect or Microsoft Azure side.

Resolution

Add the missing columns to both streamDeclarations.columns in the DCR and the Microsoft Azure Monitor table schema. The columns in streamDeclarations.columns must match your Connect connection output configuration exactly. For more information, see Configure the Microsoft Azure Monitor destination.

Table 1. Missing column symptoms and resolutions for Microsoft Azure Monitor destinations

Symptom

Cause

Resolution

Some columns are missing from the Azure Monitor table

streamDeclarations.columns does not list those columns

Add the missing columns to streamDeclarations.columns and to the table schema

Only TimeGenerated and Type appear in the table, with no custom data

streamDeclarations.columns has no custom columns defined

Add all Connect output columns to streamDeclarations.columns and the table schema

Issue: Scheduled connection owned by a deleted user no longer runs

Scheduled connections require an existing Tanium user account owner to run scheduled instances. If the scheduled connection owner is deleted, future scheduled instances of that connection do not run.

To resolve, export and import the scheduled connection to create a new scheduled connection. For more information, see Export connections and Import connections.

Issue: Tanium Audit Source connection fails with MaxNumberOfAuditEntriesPerCacheExceeded error

Connections configured with the Tanium Audit Source connection source might fail if you configure Days of History Retrieved as 0 or a very large value, and a large period of time elapses between connection runs. Update the Days of History Retrieved value to a small integer, such as 1 or 2. For more information, see Reference: Tanium Audit Source data.

Note: If you want to send a large number of audit entries per connection run, you can also increase the max_soap_audit_entries_per_cache advanced setting. Contact Tanium Support for guidance before you edit advanced settings. For more information, see Manage advanced settings.

Issue: Emails to Microsoft 365 destinations fail to send

Emails sent to Microsoft 365 destinations are subject to the following limitations:

  • The Email (O365) destination requires an email server profile. If you delete an email server profile configuration that is referenced by a scheduled connection, future scheduled instances of that connection fail. Recreate the email server profile configuration, then reference the new email server profile in the scheduled connection.

  • The Microsoft Graph API limits email requests to four concurrent requests. If you have multiple connections using the same email server profile configuration, emails over the four concurrent requests are queued for sending after prior requests resolve. Schedule connections using the same email server profile configuration to run at different times and minimize the number of requests sent simultaneously.

  • If you assign the Mail.Read permission to your Microsoft Entra ID (formerly Azure Active Directory) application, you can send emails with attachments up to a total of 3 MB, or emails with a body up to 3 MB. If your connections send more data than that per run, do one of the following:

    • Schedule your connection to run more frequently, to try and reduce the size of each email.

    • Refine the connection source configuration to reduce the amount of data sent per connection run.

    • Assign the Mail.ReadWrite permission to the Microsoft Entra ID application. This enables sending emails with attachments up to a total of 150 MB, subject to any other limits that you configure in your Azure environment.

Issue: Imported connections to Microsoft 365 destinations do not run

Exporting a connection that uses a Microsoft 365 destination from one environment and importing it in another does not also import the required email server profile configuration. To export a connection that uses a Microsoft 365 destination:

  1. Export the connection from the originating environment, then import the connection in the target environment. For more information, see Export connections and Import connections.

  2. Create the email server profile in the target environment. For more information, see Configure email server profile settings for Microsoft 365.

  3. Edit the connection and select the Email Server Profile. For more information, see Configure the email results destination.

Issue: Created connection does not allow editing of source or destination type

After you create a connection, you cannot update the connection source type or destination type, only the source configuration or destination configuration. If you want to change the source type or destination type, create a new connection.

Issue: Cannot authenticate connection to Splunk instance using HTTP destination

Connections to Splunk instances that use the HTTP destination cannot authenticate against the Splunk instance unless Splunk and a space precede the token string. Configure an HTTP header named Authorization. Then configure an HTTP header value in the format Splunk <token-string>.

  1. From the Create Connection page, enter a Name and select a Source. Then select HTTP as the Destination.

  2. Select Header Authentication from Use Authentication.

  3. Enter Authorization in the Auth Header Name field.

  4. Enter the Splunk token string in the Secret field, using the format Splunk <token-string>.

  5. Enter other information required for the connection.

  6. Click Save.

Uninstall Connect

The basic Connect module uninstallation is designed so that the data you have collected is restored if you later decide to reinstall Connect. In some cases, you might want to start "clean" and not restore the data. To do this, you must manually remove some files.

Important: Consult with Contact Tanium Support before you uninstall or reinstall Connect.

Uninstall Connect so data is restored on reinstall

  1. Sign in to Tanium Console as a user with the Administrator role.

  2. From the Main menu, go to Administration > Configuration > Solutions.

  3. Under Connect, click Uninstall.

  4. Review the summary and click Uninstall.

  5. When prompted to confirm, enter your password.

If you later import the Connect solution, the previous data is restored.

Uninstall Connect so you start fresh when you reinstall

  1. Uninstall Connect so data is restored on reinstall.

  2. Manually delete the connect-files directory. You have the following options:

    • In a Windows environment, manually delete the \Program Files\Tanium\Tanium Module Server\services\connect-files\ directory.

    • In a Linux environment, manually delete the /opt/Tanium/TaniumModuleServer/services/connect-files/ directory.

Deleting the connect-files directory removes all existing Connect data. All logs, output, the Connect database, and any other Connect data is deleted. If you later import the Connect solution, the previous data is not restored.