Skip to main content
Question

how to display the additional fields from datatable in dashboard query

  • April 4, 2026
  • 4 replies
  • 77 views

Sanzz
Forum|alt.badge.img+1

Hi, 

I have created the datatables, one field is ip ranges which is values and its data type is string and another filed is its respective sitename
 

Query :

case.alerts.entities.type = "ADDRESS"

$ip = case.alerts.entities.identifier

$ip in %Test.Value

Match:

    case.priority

outcome:

    $Count = count(case.name)

how to fetch the sitename along with its matching IP in the datatables in secops dashboard query

Note: When I check the logs, sitename is found in the udm filed deviceGroupName and also in deviceGroupDescription

thank you!

4 replies

hzmndt
Staff
Forum|alt.badge.img+11
  • Staff
  • April 6, 2026

I think you will get ->compilation error compiling query: validating query: validating data sources: joining case with other datasources is not supported: invalid argument

I believe the feature is not supported, if it’s supported, you can do like below: 

// Original conditions

case.alerts.entities.type = "ADDRESS"

$ip = case.alerts.entities.identifier

 

// Join with the data table %Test

// This condition links the event to rows in %Test where $ip falls within the Value range

net.ip_in_range_cidr($ip, %Test.site_range )

 

match:

case.priority

 

outcome:

$Count = count(case.name)

$MatchingIp = $ip

// Add an outcome variable to fetch the sitename from the joined data table row

$SiteName = %Test.site_name

 


Sanzz
Forum|alt.badge.img+1
  • Author
  • Bronze 1
  • April 8, 2026

Hi ​@hzmndt , 
Thank you for your response, 

I have a clarification. In the data tables, I have defined both columns with the data type as String. In this case, how can net.ip_in_range_cidr($ip, %Test.site_range) be used with string data types?
Is there any other way for the string datatype !

 


hzmndt
Staff
Forum|alt.badge.img+11
  • Staff
  • April 8, 2026

two options:

  1. re-create the data table with cidr type
  2. use below syntax when query

$cidr = %b_test_100_string.cidr

net.ip_in_range_cidr($e.principal.ip, $cidr)

 

If you direct use the string type in the net.ip_in_range_cidr, it will get error. 


Sanzz
Forum|alt.badge.img+1
  • Author
  • Bronze 1
  • April 9, 2026

Thank you!