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.

Question about template usage for ecs

See original GitHub issue

Hello,

As creator of the following project => https://github.com/OutsideIT/logstash_filter_f5

I’d prefer to follow ECS guidelines in the future and switch current fields if appropriate to ECS fields with dot notation. For now I always used underscores for all my fields, which makes this kind of new.

If I would create a template for some fields, eg.

        "f5_tmm_session_bytes_in": {
          "type": "long"
        },
        "f5_tmm_session_bytes_out": {
          "type": "long"
        },

And switch those to dot notated fields network.inbound.bytes and network.outbound.bytes, would this be the template that I would ideally use for those fields?

        "network": {
          "properties": {
            "inbound": {
              "properties": {
                "bytes": {
                  "type": "long"
                }
              }
            },
            "outbound": {
              "properties": {
                "bytes": {
                  "type": "long"
                }
              }
            },
          }
        }

I saw some examples which also have "type": "object" in the template, but I didn’t see that everywhere (not in the beat.* object template for example)

Thanks for confirming the correct or incorrect use of my f5 template.

Another small question, I tend to use the ignore_above parameter alot, which I don’t see anywhere in the ECS common field types. Are we ‘allowed’ to use the ignore_above on ECS fields and can we set them as we want or would this cause mapping conflicts if mixed with data from other indices which have different or no ignore_above parameter for the same field?

Grtz

Willem

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
webmatcommented, Jul 3, 2018

ignore_above can be seen as a safety feature. It only prevents the keyword (exact match search + aggregations) indexing to take into account values that are longer than 1024. Or more precisely, it stops caring at 1024 chars.

But I don’t think it changes anything performance or storage wise on fields where values are all reasonably sized (e.g. 20 to 100 chars).

0reactions
willemdhcommented, Jul 13, 2018

I think all my questions in this issue got answered. Tx all. Closing up.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Amazon Elastic Container Service template snippets
Use Amazon Elastic Container Service sample template snippets to help you describe Amazon ECS resources in your AWS CloudFormation templates.
Read more >
How to use ECS Service Daemon Scheduling with ...
It's a real problem that AWS releases feature without CloudFormation support, while a third party software like Terraform already has the ...
Read more >
Question Section in RFx Template - IBM
The RFx question section lists the fields that are available in the RFx Question ... If a Minimum Value is defined for the...
Read more >
20 Questions You Were Afraid to Ask About Amazon EKS and ...
Many talk about how billing works, how to run it on ECS, ... the default behavior is to not use Launch Templates so...
Read more >
Question 1 Which of the following are features of AWS ECS ...
JSON template that describes containers which forms your applicationb. ... Your organization is planning to use AWS ECS for dockerapplications.
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