question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Propose new top-level prefix 'related'

See original GitHub issue

What I really like about ECS is the well-defined semantics of the data model. I understand we’re still evolving what that means, of course. One downside to the way that Kibana is structured to analyzed event-based, time-based data, is that it’s impossible to pivot across fields that may have the same content, but different field names. Of course, this is one item that ECS aims to unify, but semantics have to come first.

I’d like to propose a new top-level object called related. This object will hold fields that are lists of necessary types, which allows a single-click pivot to related records where the data may exist in different fields. Some examples:

  • related.ip: List of related IPs (IPv4 or IPv6)
  • related.hostname: List of related DNS hostname
  • related.id: List of related event IDs
  • related.hash: List of all hashes listed in the event

We do this today in RockNSM, but under the field names like @meta.related_id, @meta.related_ip, etc. I’m in the process of migrating this over to ECS and I think it would be especially useful to have this across other datasets.

A tangible example: Bro files log.

The bro files log has a unique identifier for a given analyzed file. Usually, a file was analyzed as part of one or more network data streams. An extreme, but not uncommon example, is a file transferred over the bittorrent protocol. In this case, bro tracks a single file that was transferred from and to many, many hosts. In this case, the following transformation captures the relevant pivotable data:

  • fuid: copy to event.id and related.id
  • tx_hosts: copy to related.ip
  • rx_hosts: copy to related.ip
  • conn_uids: copy to related.id
  • md5: copy to related.hash
  • sha1: copy to related.hash
  • sha256: copy to related.hash
  • sha512: copy to related.hash

Of course, data needs to be moved around to make the rest of it conformant, but now we can pivot to the related connection-oriented logs and events from other data sources, that perhaps match hashes.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
praseodymcommented, Dec 11, 2018

Should the ECS index template also include copy_to definitions to create the related fields, e.g. add copy_to: "related.ip" to the source.ip template, to ensure that the related fields are always filled as expected?

0reactions
ebeahancommented, Aug 2, 2021

The last outstanding item from the original proposal is establishing something equivalent to related.id in ECS.

We created meta-issue ##1547 to assess correlated event support in ECS. Closing in favor of the meta issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Toplevel in Tkinter: Prevent Two Windows from Opening
1 Answer 1 ... The withdraw() method removes the window from the screen. The iconify() method minimizes the window, or turns it into...
Read more >
RFC 2450: Proposed TLA and NLA Assignment Rule
RFC 2450 Proposed TLA and NLA Assignment Rules December 1998 - Only assign top level prefixes to organizations who are capable and intend...
Read more >
Hierarchical copy with prefix and pcells - Custom IC SKILL
Hi, I need to do a Hierarchical copy of top level design with a prefix. ... You can no longer post new replies...
Read more >
TIP 195: A Unique Prefix Handling Command
This TIP adds a new command to support matching of strings to unique prefixes of patterns, similar to Tcl's existing subcommand-name matching or...
Read more >
draft-ietf-ipngwg-tla-assignment-05.txt
1.0 Introduction This document proposes rules for Top-Level Aggregation ... current provider-based aggregation and a new type of exchange-based aggregation.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found