You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by "Dima Kovalyov (Jira)" <ji...@apache.org> on 2020/01/10 01:21:00 UTC

[jira] [Issue Comment Deleted] (METRON-2330) Document Profiler "'global'" object

     [ https://issues.apache.org/jira/browse/METRON-2330?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dima Kovalyov updated METRON-2330:
----------------------------------
    Comment: was deleted

(was: I have profiler running with:
{code:java}
{
  "profiles": [
    {
      "profile": "distinct_auth_attempts_by_user_distribution",
      "foreach": "'global'",
      "onlyif": "profile == 'distinct_auth_attempts_by_user'",
      "init": {
        "s": "STATS_INIT()"
      },
      "update": {
        "s": "STATS_ADD(s, total_count)"
      },
      "result": {
        "profile": "total"
      }
    }
  ]
}
{code}
I stream following events directly to indexing topic:
{code:java}
{
  "period.start": 1575289200000,
  "period": 26254820,
  "parallelenricher.splitter.end.ts": "1575290384733",
  "total_count": 1,
  "profile": "distinct_auth_attempts_by_user",
  "is_alert": "true",
  "parallelenricher.enrich.begin.ts": "1575290384733",
  "source.type": "profiler",
  "parallelenricher.splitter.begin.ts": "1575290384733",
  "parallelenricher.enrich.end.ts": "1575290384733",
  "period.end": 1575289260000,
  "guid": "1346fe72-8b33-48c7-b377-714a234f0d78",
  "entity": "C15131",
  "timestamp": 1575290384721
}
{code}
After ingestion, these events are stored in ES profiler index. But they getting ignored by the aforementioned profiler above.

When I execute the same profiler in REPL command line it is getting processed just fine.
Please let me know if there is a better place to ask this question.
Thank you.)

> Document Profiler "'global'" object
> -----------------------------------
>
>                 Key: METRON-2330
>                 URL: https://issues.apache.org/jira/browse/METRON-2330
>             Project: Metron
>          Issue Type: Improvement
>    Affects Versions: 1.7.1
>            Reporter: Dima Kovalyov
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Dear Metron community,
>  
> "[Statistics and Mathematical Functions|[https://metron.apache.org/current-book/metron-analytics/metron-statistics/index.html]]" page makes use of:
> {code:java}
> "foreach": "'global'"
> {code}
> But nowhere on the internet, I was able to find any description of what it is, how it's working and how to troubleshoot it.
> The page mentions "We will capture a global statistical state for the {{value}} field and we will look back for a 5 minute window when computing the median." from which I can guess that 'global' represents the entire message instead of any particular field.
> Can you please shed some more light on it?
> In the comments, I'll post an example of my restle with it.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)