Logstash Custom Fields

26 views
Skip to first unread message

Julien Pivotto

unread,
Jul 27, 2017, 7:22:01 AM7/27/17
to WildFly Swarm
Hello,

We try to setup logstash logging in project-stages.yml:

---
jboss.node.name: foo
swarm:
  port:
    offset: 110
  bind:
    address: 10.199.14.13
  logstash:
    hostname: 127.0.0.1
    port : 9242
    level: DEBUG


We try to add an extra field to the logstash output, but we can not do this.

We tried multiple approaches, like adding:

    formatter-properties:
      metadata:
        - foo
        - bar
 

without success.

What approaches could we take?

Bob McWhirter

unread,
Jul 27, 2017, 9:04:03 AM7/27/17
to Julien Pivotto, WildFly Swarm
I’d have thought this would work.  Since it doesn’t, would you mind filing a JIRA at https://issues.jboss.org/browse/SWARM ?

Thanks!

-Bob

--
You received this message because you are subscribed to the Google Groups "WildFly Swarm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly-swarm+unsubscribe@googlegroups.com.
To post to this group, send email to wildfl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly-swarm/aac17767-52ff-4d29-bb0b-a61f6c16c9e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vasiliy

unread,
Feb 4, 2020, 9:50:40 AM2/4/20
to Thorntail
Hello!

I have the same problem.
I use <version.wildfly.swarm>2018.5.0</version.wildfly.swarm>
In my project-defaults.yml I set:

swarm:
  logstash:
    hostname: 172.25.199.175
    port: 5000
    level: INFO
    formatter-properties:
      index: app-shark

Connection with Logstash establish successfully. But JSON do not contain field "index" witch i need. What I doing wrong?
Could you please help me?

четверг, 27 июля 2017 г., 14:22:01 UTC+3 пользователь Julien Pivotto написал:

Vasiliy

unread,
Feb 4, 2020, 9:50:40 AM2/4/20
to Thorntail
Hello!

I have the same problem.
I use <version.wildfly.swarm>2018.5.0</version.wildfly.swarm>
In my project-defaults.yml I set:

swarm:
  logstash:
    hostname: 172.25.199.175
    port: 5000
    level: INFO
    formatter-properties:
      index: app-shark

Connection with Logstash establish successfully. But JSON do not contain field "index" witch i need. What I doing wrong?
Could you please help me?

четверг, 27 июля 2017 г., 14:22:01 UTC+3 пользователь Julien Pivotto написал:
Hello,
Reply all
Reply to author
Forward
0 new messages