Skip to content
Discussion options

You must be logged in to vote

Ok, I've figured out but I decided not to use service names in the index naming:

  <source>
    @type http
    port 8000
    bind "0.0.0.0"
    body_size_limit 4m
    keepalive_timeout 3s
    <parse>
      @type "json"
    </parse>
  </source>
# ADD THIS SECTION
  <match INPUT_TAG>
    @type rewrite_tag_filter
    <rule>
      key "$.HOST_FROM"
      pattern ^(.+)$
      tag "${tag}.$1"
    </rule>
  </match>
  <match INPUT_TAG.**>
    @type opensearch
    host "IP_ADDR"
    port 9200
    logstash_format true
    logstash_prefix "${tag}"
    logstash_dateformat "%m.%Y"
    scheme http
    user "opensearch_user"
    password xxxxxx
    log_os_400_reason true
  </match>

If you need to add …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by java-juggled-jazz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant