Custom Reports: Difference between revisions

From Edge Threat Management Wiki - Arista
Jump to navigationJump to search
 
(4 intermediate revisions by the same user not shown)
Line 9: Line 9:
==== Copy Report ====
==== Copy Report ====


#Got to the Reports Section,
#Go to the Reports Section,
#Locate the report you want to copy and click Settings.
#Locate the report you want to copy and click Settings.
#Rename the title and click the Create New button. A copy of the report is made with the new title.
#Rename the title and click the Create New button. A copy of the report is made with the new title.
Line 18: Line 18:
==== Customize Report ====
==== Customize Report ====


#When viewing a report within an application, click the ''Customize'' button.
#Rename the report and modify other report settings as needed.  
#Rename the report and modify other report settings as needed.  
#Click ''Save as New Report'' to save the report.  
#Click ''Create New'' to save the report with a new name.
 


==== Add Report ====
==== Add Report ====


#In the Reports App, go to the [[Reports#Manage Reports|Manage Reports]] tab.  
#Go the Reports section.  
#Click the ''Add'' button. A blank report form will appear.
#Click the ''Add/Import'' button and select ''Create New''. A blank report form will appear.
#Name the report, select the type of graph and fill other fields to customize the report.  
#Name the report and description, select the category and report type of graph and fill other fields to customize the report.  
#Click View Report at any time to preview the report.
#Click ''Preview/Refresh'' at any time to preview the report.
#Click ''Done'' to save the report.
#Click ''Create New'' or ''Update'' to save the report.


== Report Fields ==
== Report Fields ==
Line 113: Line 111:
==== Creating the Report ====
==== Creating the Report ====


# In the Reports app, go to the ''Manage Reports'' tab.
# Go to Reports
# Scroll to the Web Filter and select a report. Click ''Edit''.
# Scroll to the Web Filter and select a report.
# Click ''Copy Report''
# Update the Title for the report and description if necessary.  
# Update the Title for the report and description if necessary.  
# Click ''Create New''
# Since you are interested in the same type of data, all other report fields can remain the same.
# Since you are interested in the same type of data, all other report fields can remain the same.
# In Sql Conditions, add conditions. For this example we will use the ''username'' but you might also use hostname, client address of other fields.  
# In Sql Conditions, add conditions. For this example we will use the ''username'' but you might also use hostname, client address of other fields.  
## In the ''Select Column'' field, select ''username''.
## Click ''Add''.
## Click ''Add''.
## In the ''Column'' field, select ''username''.
## Use the = operator and enter the username for the user in the ''Value'' field.
## Use the = operator and enter the username for the user in the ''Value'' field.
# Click Done.
# Click ''Update''.




[[Image:112_customreport.png|700px|center|Custom Report]]
[[Image:112_customreport.png|700px|center|Custom Report]]
After adding the report, it will be easily accessible in the Web Filter Reports tab and under Manage Reports.


== Custom Report Example - Rack Reporting ==
== Custom Report Example - Rack Reporting ==
Line 147: Line 141:
==== Creating the Report ====
==== Creating the Report ====


# In the Reports app, go to the ''Manage Reports'' tab.  
# Go to Reports.
# Scroll to the Application Control reports and select a report. Click ''Edit''.
# Scroll to the Application Control reports and select a report.
# Click ''Copy Report''
# Update the Title for the report and description. Here we have added "Mobile Devices Rack".  
# Update the Title for the report and description. Here we have added "Mobile Devices Rack".  
# Click ''Create New''
# Since you are interested in the same type of data, all other report fields can remain the same.
# Since you are interested in the same type of data, all other report fields can remain the same.
# In Sql Conditions, add the condition for the policy_ID.  
# In Sql Conditions, add the condition for the policy_ID.  
Line 160: Line 154:


[[Image:112_rackid_report_example.png|700px|center|Custom Report]]
[[Image:112_rackid_report_example.png|700px|center|Custom Report]]
After adding the report, it will be easily accessible in the Application Control Reports tab and under Manage Reports.

Latest revision as of 18:49, 18 March 2019

Custom Reports allow you to create a report to your specifications and save the report for future use. These can be added by copying an existing report and modifying it to your needs, or by creating a report from scratch. Both methods require a strong understanding of how reports in Untangle work and the Database Schema.

If you're having trouble creating any reports give us a shout on the forums or through support. As we receive requests for common reports we will add these as default reports in future releases.

Add Custom Reports

The Copy or Customize features allow you to use an existing report as a base for creating new reports. We recommend using an existing report to base your custom report as the fields and queries are much easier to understand.

Copy Report

  1. Go to the Reports Section,
  2. Locate the report you want to copy and click Settings.
  3. Rename the title and click the Create New button. A copy of the report is made with the new title.
  4. Modify other report settings as needed.
  5. Click Preview/Refresh to view changes.
  6. Click Update to save the changes to the report.

Customize Report

  1. Rename the report and modify other report settings as needed.
  2. Click Create New to save the report with a new name.

Add Report

  1. Go the Reports section.
  2. Click the Add/Import button and select Create New. A blank report form will appear.
  3. Name the report and description, select the category and report type of graph and fill other fields to customize the report.
  4. Click Preview/Refresh at any time to preview the report.
  5. Click Create New or Update to save the report.

Report Fields

Custom Reports Fields
Custom Reports Fields


The following fields will be there when modifying or creating a new custom report.

Report Field Description
Category The app where the report will be displayed.
Title Title of the report.
Description Description will be shown under the title of the report to provide the reader more information.
Enabled Disabled reports will not be shown in the list within the application.
Display Order Determines the order the reports are displayed within the application.
Units Unit of measure displayed on the graph.
Table Table from the Database Schema to query.
Type Time Chart (Line or Bar), Pie Chart, or Text Chart.
Time Chart Style Line, Bar, or Bar 3D. Bar charts can also be overlapped or separate columns.
Time Data Interval Auto is recommended. You can also use seconds, minutes, hours, day, week or month.
Time Data Columns Data from the table defined above that you wish to use for your chart. This is written with SQL syntax. Add each column or data series on a new line. See the Web Usage (all) report for a good example.
Pie Group Column Column from the table defined above that you wish to group data by. This uses the column name from the Database Schema.
Pie Sum Column Determines how data is calculated after grouping. Common functions would be count() and sum() for specific columns within the table. See the Web Filter Top Sites reports (by size and by request) for good examples.
Pie Slices Number Determines how many results are shown.
Text Columns Data from the table defined above that you wish to use for your page. This is written with SQL syntax. Add each column or data series on a new line. These will be referred to in the text string using the line number.
Text String Text string to be shown on the page. This can include columns from the text columns query. See the Ad Blocker summary report for a good example.
Color Colors used in the chart, defined by hex color codes.
Order By Column Determines how the order will be determined. This will typically be 'value' for pie charts, and left blank for others.
Order Direction Order for the data to be displayed. For a pie chart, this is typically Descending and for time chart, this is typically Ascending.
Sql Conditions Additional conditions added to the data. This can be useful for specifying a username, IP address of other information.


Custom Report Example - User Reporting

A commonly requested report is to be able to monitor a problem employee or student who is using bandwidth excessively or accessing inappropriate web content. You can add this report so that it is always accessible under the Web Filter report tab very easily.

To start, get an idea of the reports you're interested in. For this example we'll use Top Sites (by size), but others like Top Categories or Top Flagged sites might also be useful. This is intended to be a rough outline of the procedure; adjust as needed.

Creating the Report

  1. Go to Reports
  2. Scroll to the Web Filter and select a report.
  3. Update the Title for the report and description if necessary.
  4. Click Create New
  5. Since you are interested in the same type of data, all other report fields can remain the same.
  6. In Sql Conditions, add conditions. For this example we will use the username but you might also use hostname, client address of other fields.
    1. In the Select Column field, select username.
    2. Click Add.
    3. Use the = operator and enter the username for the user in the Value field.
  7. Click Update.


Custom Report
Custom Report

Custom Report Example - Rack Reporting

With Policy Manager, racks can be created to allow different policies to apply to different groups. When reporting, you might wish to see how traffic is being handled differently across racks. Creating custom reports to show information related to a specific rack is easy to accomplish.

For this example we'll use Application Control Top Flagged Applications, but this same procedure would apply for any other application or report. This is intended to be a rough outline of the procedure; adjust as needed.

Find the Rack ID

  1. Open Policy Manager Settings.
  2. Under the Policies tab is a listing of racks with the ID.
  3. Take note of the rack(s) of interest. For this example we'll use rack id 6 for Mobile Devices.
Rack ID
Rack ID

Creating the Report

  1. Go to Reports.
  2. Scroll to the Application Control reports and select a report.
  3. Update the Title for the report and description. Here we have added "Mobile Devices Rack".
  4. Click Create New
  5. Since you are interested in the same type of data, all other report fields can remain the same.
  6. In Sql Conditions, add the condition for the policy_ID.
    1. Click Add.
    2. In the Column field, select policy_id.
    3. Use the = operator and enter the policy id of 6 (matching the Mobile Devices rack) in the Value field.
  7. Click Done.


Custom Report
Custom Report