Skip to main content

Native Dashboard: Reference list

  • Aug 24, 2024 7:30 PM UTC
  • 13 replies
  • 86 views

Omskirt
Forum|alt.badge.img+7

Good day,

Can the reference list be integrated or called in the native dashboard? For example, when we create a use case in the native dashboard, can we call the reference list? On my end, I am unable to call the reference list in the native dashboard due to error something. If it’s possible, could you provide an example? If not, could you suggest a workaround?

13 replies

dnehoda
Staff
Forum|alt.badge.img+19
  • Staff
  • Aug 26, 2024 3:25 PM UTC

Hello, 

This is supported.  What error are you getting? 


Omskirt
Forum|alt.badge.img+7
  • Author
  • Bronze 2
  • Aug 26, 2024 3:40 PM UTC

Hello, 

This is supported.  What error are you getting? 


This is the error that I’m getting, It says like metadata unavailable for reference list. Could you give me an example for reference list that are being called in the native dashboard? Thanks


Omskirt
Forum|alt.badge.img+7
  • Author
  • Bronze 2
  • Aug 26, 2024 3:43 PM UTC

Hello, 

This is supported.  What error are you getting? 


Metadata unavailable for reference list then saying invalid arguments. If this feasible could you give me an example for calling the reference list in the native dashboard? So I can better understand it. Thanks. 


cmorris
Staff
Forum|alt.badge.img+17
  • Staff
  • Aug 26, 2024 5:39 PM UTC

This is the error that I’m getting, It says like metadata unavailable for reference list. Could you give me an example for reference list that are being called in the native dashboard? Thanks


Hi,

Try something like this:

principal.ip in %test_ips match: principal.ip outcome: $risk_score = sum(if(target.ip in cidr %test_ips, 100, 0))

Omskirt
Forum|alt.badge.img+7
  • Author
  • Bronze 2
  • Aug 26, 2024 5:54 PM UTC

Hi,

Try something like this:

principal.ip in %test_ips match: principal.ip outcome: $risk_score = sum(if(target.ip in cidr %test_ips, 100, 0))

It’s not working also even I try this sample and change what I have in the reference list. I’m always getting error on this part. Do you have any documentation for this about reference list in terms of calling in the native dashboard?


Omskirt
Forum|alt.badge.img+7
  • Author
  • Bronze 2
  • Aug 26, 2024 6:37 PM UTC

Hi,

Try something like this:

principal.ip in %test_ips match: principal.ip outcome: $risk_score = sum(if(target.ip in cidr %test_ips, 100, 0))

The error saying in the native dashboard “generic::invalid argument:compilation error reference list version fetching:metadata unavailable for reference list”. That’s the error I’m getting when I’m calling reference list in native dashboard. 


dnehoda
Staff
Forum|alt.badge.img+19
  • Staff
  • Aug 27, 2024 5:30 PM UTC

Metadata unavailable for reference list then saying invalid arguments. If this feasible could you give me an example for calling the reference list in the native dashboard? So I can better understand it. Thanks. 


Okay, send over your configuration so we can look at it.  

This works with a string but not with a CIDR type ref list.  

 

principal.ip in %test_ips
match:
principal.ip
outcome:
$risk_score = sum(if(target.ip in cidr %test_ips, 100, 0))

Omskirt
Forum|alt.badge.img+7
  • Author
  • Bronze 2
  • Aug 27, 2024 6:33 PM UTC

Okay, send over your configuration so we can look at it.  

This works with a string but not with a CIDR type ref list.  

 

principal.ip in %test_ips
match:
principal.ip
outcome:
$risk_score = sum(if(target.ip in cidr %test_ips, 100, 0))

 

The error message in the native dashboard says, 'generic::invalid argument:compilation error reference list version fetching: metadata unavailable for reference list.' This is the error I'm getting when I try to call the reference list in the native dashboard. I also created a rule in rule detection with the reference list and attempted to call it in the native dashboard, but it's not working.

 

 

 


dnehoda
Staff
Forum|alt.badge.img+19
  • Staff
  • Aug 28, 2024 1:26 PM UTC

 

The error message in the native dashboard says, 'generic::invalid argument:compilation error reference list version fetching: metadata unavailable for reference list.' This is the error I'm getting when I try to call the reference list in the native dashboard. I also created a rule in rule detection with the reference list and attempted to call it in the native dashboard, but it's not working.

 

 

 


Could you please share the exact config that you have including the type of ref list?  


Omskirt
Forum|alt.badge.img+7
  • Author
  • Bronze 2
  • Aug 28, 2024 5:50 PM UTC

Could you please share the exact config that you have including the type of ref list?  


In native dashboard it should be like this my format

$hostname = $e.principal.hostname

$hostname in %test_hostname

match:

  $hostname

outcome:

event_count = count_distinct($e.metadata.id)


suzhuang
Staff
Forum|alt.badge.img+6
  • Staff
  • Aug 28, 2024 10:18 PM UTC

Is test_hostname the reference list you are referring to? it seems like test_hostname is not correctly predefined. I tested the syntax below and it worked on my end but it might not be what you were looking for:

$hostname = $e.principal.hostname match: $hostname outcome: $event_count = count_distinct($e.metadata.id) order: $event_count desc

 


AymanC
Forum|alt.badge.img+14
  • Bronze 5
  • Aug 29, 2024 2:29 PM UTC

Is the reference list of a string type, and what is an example line within the reference list?


dnehoda
Staff
Forum|alt.badge.img+19
  • Staff
  • Aug 29, 2024 3:07 PM UTC

Is test_hostname the reference list you are referring to? it seems like test_hostname is not correctly predefined. I tested the syntax below and it worked on my end but it might not be what you were looking for:

$hostname = $e.principal.hostname match: $hostname outcome: $event_count = count_distinct($e.metadata.id) order: $event_count desc

 


This is the syntax but again this is in private preview.   We don't have any guarantee that something within this feature will not change.   @Omskirt 

$hostname = $e.principal.hostname

$hostname in %test_hostname
match:
$hostname
outcome:
$event_count = count_distinct($e.metadata.id)
order:  $event_count desc