CSV plugin
The CSV plugin allows you to visualize CSV data, which can either be read from a CSV file or entered manually.
Adding a data source
To add a data source, open the relevant workspace and then click on the + next to Data Sources on the left-hand menu in SquaredUp. Search for the data source and click on it to open the Add data source page.
Before you start
- Will SquaredUp need to connect to this data source via a relay agent?
- Configure access to the CSV file
- Configure the data source in SquaredUp
This 1 minute video shows how quick it is to add data from CSV.
You'll find more information below about permissions and a step-by-step guide.
Will SquaredUp need to connect to this data source via a relay agent?
This plugin is a hybrid plugin, meaning it can connect to either a cloud or an on-prem data source.
- If your data source is available on the internet, then you do not need to connect via a relay agent.
- If your data source is on a private network and is not publicly accessible, then you will need to configure a relay agent before you configure the plugin. See Deploying a relay agent.
This feature is available with an Enterprise plan
Relay agents allow you to securely connect to data sources inside your own network (on-prem).
A relay agent is installed on a server on your internal network, and has access to your data source.
When a plugin uses a relay agent it means that you don't need to open your firewall to allow SquaredUp access to the data source.
If you have already created a relay agent in SquaredUp that can access this data source, then you can skip this step and choose Connect via relay agent when Configuring the data source.
If the CSV file is in a secure location on a server, then choose to connect a relay agent, so you don't have to open your firewall.
If it is publicly accessible on the internet, for example on OneDrive shared for Anyone (or you intend to paste the CSV raw text into the tile), then you do not need to connect a relay agent.
Configuring access to a CSV file
CSV plugin (Cloud) - File on the internet Web URL - OneDrive
You can share a file on the internet, with no security, and specify a web URL in the tile config. For example, on OneDrive, you will need to set the link settings to work for Anyone. If this is not suitable security for the data you are using, you might want to consider the on-prem plugin which uses the relay agent to access the CSV in a secure location.
CSV plugin on-prem - File/folder - Windows
When configuring the data source, there are certain CSV locations you can specify (such as Windows File or Windows Folder) that use Access Control Lists (ACLs) to control which identities have access.
It is the identity of the relay agent that needs to be given permission to the folder, rather than the SquaredUp user.
The relay agent service uses the local system identity by default, but this may have been changed to NetworkService or a domain service account, for example for use with the SCOM tile.
Look at the Properties of the SquaredUp Cloud Agent service:
- On the server running the agent, open Services
- Scroll down to the SquaredUp Cloud Agent in the list
- Right-click on the SquaredUp Cloud Agent service and then Properties
Here you can see the Service name, Display name and Path to the agent folder. - The Log On tab shows you which account the service is logging on with. (Needed for the SCOM and CSV plugins)
- You can also start or stop the service from the General tab.
For example, if you want to read a CSV from a Windows folder, you must give the system identity used by the relay agent permissions to your folder:
Configuring the data source
Display name:
Enter a name for your data source. This helps you to identify this data source in the list of your data sources.Connect via relay agent:
If you are connecting to an on-prem data source, select this toggle so you can use a relay agent to connect securely.Then, select the Agent Group that contains the agent(s) you want to use. Agent groups are managed from Settings > Relay Agents.
NoteWhen selecting an agent group, be careful about mixing agent types. If you have a group composed of Linux and Windows agents, there could be potential issues when attempting to read a CSV file from a Windows based location on Linux, and vice versa.
Restrict access to this data source:
Optionally, enable this toggle if you only want certain users/groups to have access to the data source, or those with the permission to link it to new workspaces. See data source access control for more information.- Click Add to add the plugin.
Next steps
Once you've added a CSV data source, you can start creating dashboards to visualize your data.
Use the File data stream to use CSV data which is saved in a shared file, so that the tile updates when the CSV file is updated. Alternatively, use the Raw Text data stream to copy and paste the raw CSV data straight into the tile.
You may also like: Blog: Getting started with the CSV data source
Showing data on a tile using a CSV file
You may need to close your CSV file to see any updates made to it in SquaredUp.
- On a dashboard click + and then Data to add a new data tile.
- Data Stream tab:
Click on File.
If File isn't listed then perhaps the data source was added for the organization but not this workspace. Click the Data Source menu > Add new data source and look through the data sources listed.
If you still can't see the data source perhaps it doesn't exist at the organization level, so click the link at the bottom of the page to add a new data source.
Click on the Objects tab (or click Next). - Objects tab:
Click on the name you gave your Data Source to tick it.
Click on the Parameters tab (or click Next). - Parameters tab
Choose the CSV Location and enter the path:- Web URL:
Enter the location of a CSV file shared on the internet.NoteYou can share a file on Onedrive, but you will need to set the link settings to work for Anyone, so you should consider whether this is suitable security for the data you are using.
If you are using the on-prem plugin you will have further options: - Windows File (Windows Relay agent):
Specify the Folder and File location of the CSV. - Windows Folder (Windows Relay agent):
Specify the Folder location from which to get the most recently created CSV. - Linux File (Linux Relay agent):
Specify the Folder and File location of the CSV. - Linux Folder (Linux Relay agent):
Specify the Folder location from which to get the most recently created CSV.
- Web URL:
- Has Header Row:
If your data uses the first row as the header tick the box. - Advanced Options:
- Delimiter:
If the delimiter is not automatically detected, you can specify the delimiter, such as a semicolon, here. - Skip Lines:
Enter the number of lines in the file to skip before importing CSV data. This is useful in circumstances where the file includes some sort of intro text. - For Web URLs:
Ignore certificate errors:
If you activate this checkbox the data source will ignore certificate errors when accessing the server. This is useful if you have self-signed certificates.
- Delimiter:
- A suitable visualization is chosen, where possible, but at this point you might like to change the visualization used, see Visualization Settings.
In the right hand pane you can also hide and sort columns,
The Filter | Group | Sort and Columns sections can help you configure the visualization as you need. - Filter | Group | Sort tab:
This taballows you to perform filtering, grouping and sorting operations on the data.Data can be filtered according to whether data in a column meets or does not meet specified text or numerical value conditions.
Multiple filters
You are able to add multiple filter conditions using the following operators:
- AND: All conditions must be satisfied (e.g.
Status-Equals-ClosedANDType-Equals-Question). - OR: Any condition can be satisfied (e.g.
Status-Equals-PendingORStatus-Equals-Closed).
Available filters
The following options are available when filtering data, which ones display depends on the column type.
Use the grouping section to group and aggregate data columns.
For example, for AWS cost data you might configure the following settings to display a table or bar chart of cost per label:
- Group by:
label - Aggregation type:
Total - Aggregation column:
Amount
Which columns are available depends on the data stream you chose.
Configuring grouping enables different visualizations to be displayed, such as bar chart and donut. For example, grouping tickets by channel allows you to show a donut of how many tickets were logged by email vs web form.
Bucket by
If you group by a time column, and further grouping is possible, the Bucket by dropdown appears. Use this field to control how the time data is grouped, for example by
hour,day,monthetc.Aggregation
To aggregate your data, you must select an Aggregation type and a target Aggregation column. For example, if creating bar chart for an Azure Resource Group cost, you could configure the following settings:
- Group by:
Timestamp - Bucket by:
Day - Aggregation type:
Total - Aggregate column:
Cost
The following lists the available aggregation types.
The Sort section allows you to select one or more columns to sort your date by, in either ascending or descending order.
While this sets the default sort order of data, but you can always click on a column heading to sort the data table on the fly.
To sort by multiple columns, click Add sort by to add a new row of sort fields to the list. This allows you perform more complex sorts, such as sorting data by the data it was created, then sorting those results alphabetically.
Enabling the Top toggle allows you to specify the top n rows of data to display.
- AND: All conditions must be satisfied (e.g.
- Columns tab:
SquaredUp automatically defines the metadata retrieved from data streams so the data is assigned the correct data type, however in some circumstances you may want to override this.
For example, when retrieving data using the Web API plugin, scripting, or custom query data streams (such as Splunk Enterprise plugin), the assigned data type may not be quite correct or as you expect.
Column settings
Use the following options to format your columns.
Custom formatting
Clicking on a row opens the Configure column window, where you can modify the column name and type. Additionally, you can also supply a format expression to manipulate how the column value is displayed.
For example, you might want to attach a label to a value, combine multiple columns together or display the result of some other calculation.
See Expressions for more.
Custom columns
Custom columns allow you to take any data stream and add completely new columns defined by you. You can provide a value expression when configuring the column to calculate the new column value by leveraging the available data.
NoteIt is currently not possible to reference a custom column via an expression from inside another custom column.
For example, you might want to create a new URL column by entering an expression that combines an address with a ticket ID, or to map data values in order to create state columns.
To add a new custom column, click the Add button under the columns table and select the Custom option. A new column is then added to the list and the Configure column window opens.
See Expressions for more.
Comparison columns
Comparison columns are used to compare two values, for example you may want to compare the number of tickets raised this month to the number of tickets raised last month. You can choose to show the value as an absolute change (for example, 12 more tickets) or as a percentage change (for example, a 28% increase).
When a column has a Type of Number, the Add comparison
button displays at the end of the row, which you can click to open the Add comparison window.
From this window, if you have multiple columns with a Type of Number, you can create a comparison column by doing the following:- Column A:
Select the first column to compare against. Automatically populated with the column of which you clicked Add comparison. - Column B:
Select the second column to compare against. - Output:
Select how to display the comparison value. This value is displayed in the Preview field. Choose from:- Absolute: Show the numerical value of Column A - Column B.
- Percentage: Show the ratio of Column B to Column A as a percent.
- Click Add to create the comparison.
Additional options
Some data types have advanced settings that can be configured in the options section, which is displayed whenever you change the data Type or by clicking expand
next to the column Name. - Column A:
- Optionally, configure Monitoring and KPIs.
- When you have finished click Save.
Showing data on a tile using CSV Raw Text
This data stream is designed to quickly handle small amounts of data and is therefore limited to 20,480 characters. If you need to work with larger amounts of data, use the File data stream to read directly from the source file. Alternatively you may want to aggregate the data to use here.
- On a dashboard click + and then Data to add a new data tile.
- Data Stream tab:
Click on Raw Text.
If Raw Text isn't listed then perhaps the data source was added for the organization but not this workspace. Click the Data Source menu > Add new data source and look through the data sources listed.
If you still can't see the data source perhaps it doesn't exist at the organization level, so click the link at the bottom of the page to add a new data source.
Click on the Objects tab (or click Next). - Objects tab:
Click on the name you gave your Data Source to tick it.
Click on the Parameters tab (or click Next). - Parameters tab:
- CSV Text:
Paste your raw CSV data into the box. - Has Header Row:
If your data uses the first row as the header tick the box. - Advanced Options:
If the delimiter, i.e. comma, is not automatically detected, you can specify the delimiter, such as a semicolon, here.
- CSV Text:
- A suitable visualization is chosen, where possible, but at this point you might like to change the visualization used, see Visualization Settings.
In the right hand pane you can also hide and sort columns,
The Filter | Group | Sort and Columns sections can help you configure the visualization as you need. - Filter | Group | Sort tab:
This tab allows you to perform filtering, grouping and sorting operations on the data.Configure Group by and Aggregation type to show a donut Data can be filtered according to whether data in a column meets or does not meet specified text or numerical value conditions.
Multiple filters
You are able to add multiple filter conditions using the following operators:
- AND: All conditions must be satisfied (e.g.
Status-Equals-ClosedANDType-Equals-Question). - OR: Any condition can be satisfied (e.g.
Status-Equals-PendingORStatus-Equals-Closed).
Available filters
The following options are available when filtering data, which ones display depends on the column type.
Use the grouping section to group and aggregate data columns.
For example, for AWS cost data you might configure the following settings to display a table or bar chart of cost per label:
- Group by:
label - Aggregation type:
Total - Aggregation column:
Amount
Which columns are available depends on the data stream you chose.
Configuring grouping enables different visualizations to be displayed, such as bar chart and donut. For example, grouping tickets by channel allows you to show a donut of how many tickets were logged by email vs web form.
Bucket by
If you group by a time column, and further grouping is possible, the Bucket by dropdown appears. Use this field to control how the time data is grouped, for example by
hour,day,monthetc.Aggregation
To aggregate your data, you must select an Aggregation type and a target Aggregation column. For example, if creating bar chart for an Azure Resource Group cost, you could configure the following settings:
- Group by:
Timestamp - Bucket by:
Day - Aggregation type:
Total - Aggregate column:
Cost
The following lists the available aggregation types.
The Sort section allows you to select one or more columns to sort your date by, in either ascending or descending order.
While this sets the default sort order of data, but you can always click on a column heading to sort the data table on the fly.
To sort by multiple columns, click Add sort by to add a new row of sort fields to the list. This allows you perform more complex sorts, such as sorting data by the data it was created, then sorting those results alphabetically.
Enabling the Top toggle allows you to specify the top n rows of data to display.
- AND: All conditions must be satisfied (e.g.
- Columns tab:
SquaredUp automatically defines the metadata retrieved from data streams so the data is assigned the correct data type, however in some circumstances you may want to override this.
For example, when retrieving data using the Web API plugin, scripting, or custom query data streams (such as Splunk Enterprise plugin), the assigned data type may not be quite correct or as you expect.
Column settings
Use the following options to format your columns.
Custom formatting
Clicking on a row opens the Configure column window, where you can modify the column name and type. Additionally, you can also supply a format expression to manipulate how the column value is displayed.
For example, you might want to attach a label to a value, combine multiple columns together or display the result of some other calculation.
See Expressions for more.
Custom columns
Custom columns allow you to take any data stream and add completely new columns defined by you. You can provide a value expression when configuring the column to calculate the new column value by leveraging the available data.
NoteIt is currently not possible to reference a custom column via an expression from inside another custom column.
For example, you might want to create a new URL column by entering an expression that combines an address with a ticket ID, or to map data values in order to create state columns.
To add a new custom column, click the Add button under the columns table and select the Custom option. A new column is then added to the list and the Configure column window opens.
See Expressions for more.
Comparison columns
Comparison columns are used to compare two values, for example you may want to compare the number of tickets raised this month to the number of tickets raised last month. You can choose to show the value as an absolute change (for example, 12 more tickets) or as a percentage change (for example, a 28% increase).
When a column has a Type of Number, the Add comparison
button displays at the end of the row, which you can click to open the Add comparison window.
From this window, if you have multiple columns with a Type of Number, you can create a comparison column by doing the following:- Column A:
Select the first column to compare against. Automatically populated with the column of which you clicked Add comparison. - Column B:
Select the second column to compare against. - Output:
Select how to display the comparison value. This value is displayed in the Preview field. Choose from:- Absolute: Show the numerical value of Column A - Column B.
- Percentage: Show the ratio of Column B to Column A as a percent.
- Click Add to create the comparison.
Additional options
Some data types have advanced settings that can be configured in the options section, which is displayed whenever you change the data Type or by clicking expand
next to the column Name. - Column A:
- Optionally, configure Monitoring and KPIs.
- When you have finished click Save.
Data streams
You can use these data streams to create new tiles to show data, or if there are preconfigured dashboards installed you can copy or edit those.
Data streams are named queries targeted at a data source, typically mapped to a specific API endpoint. They define how SquaredUp retrieves live data. By standardizing information from diverse formats into a simple table, data streams provide a consistent starting point regardless of the original source system.
Each plugin includes its own set of data streams. When editing a tile or exploring data, the data stream you choose acts as the entry point to the objects and records within that data source.
Scoped data streams allow you to specify which objects you want to pull data for. Global data streams return general information that is not tied to objects.
Some data streams are configurable, meaning you can configure additional settings on the Parameters tab of the tile editor to create a bespoke query.
When you're creating a tile, you can tweak data streams by grouping or aggregating specific columns.
See Data Streams for more information.
The following data streams are installed with this plugin.