HUB
Sign inSign up
elk-f5-ts logo

boeboe/elk-f5-ts

By boeboe

•Updated over 6 years ago

F5 BIG-IP TS ELK Container with custom Logstash chain for GeoIP data

Image
0

2.6K

boeboe/elk-f5-ts repository overview

⁠F5 BIG-IP TS ELK Container

⁠Introduction

This is a fork from the ELK all in one docker containers found on

They include a fully containerized Logstash, ElasticSearch and Kibana stack

The docker container and sources after the below described modifications can be found on

The get the proper docker command startup flags, please refer to the original documentation, as nothing has changed here

⁠Modifications

The default docker images contain a Logstash chain for Beats and Nginx. This forked container removes the default Logstash chain and injects an F5 Telemetry Streaming specific Logstash chain

The default location of the Logstash chain configuration is /etc/logstash/conf.d

⁠Input

We use the HTTP input plugin, documented here⁠

input {
  http {
    type => "f5.telemetry"
    port => 5044
  }
}
⁠Filter

We enrich the data.client_ip field in the original F5 BIG-IP Elasticsearch data with GeoLocation data for Kibana dashboarding. More information on the GeoIP filter can be found here⁠

We also remove the extra headers added by the http input plugin and make sure the @timestamp field matches the data.event_timestamp from the original data (this matches the HTTP timstamp of the traffic on the wire going through BIG-IP)

filter {
  if [type] == "f5.telemetry" {
    date {
      match => ["[data][event_timestamp]" , "yyyy-MM-dd'T'HH:mm:ss.SSSZ"]
      target => "@timestamp"
    }
    mutate {
      remove_field => [ "headers" ]
    }
    geoip {
      source => "[data][client_ip]"
    }
  }
}
⁠Output

We make sure the upstream configured (by TS) index bigip and document type f5.telemetry match our expectations

output {
  elasticsearch {
    hosts => ["localhost"]
    index => "bigip"
    document_type => "f5.telemetry"
  }
}

Note: This index and document_type need to match the below example configuration for the F5 TS Elasticsearch Consumer Configuration

⁠Background

For more information on how to use Telemetry Streaming in combination with Elasticsearch, please refer to the following documentation

Note that we are not sending traffic directly to Elasticsearch, but use Logstash as intermediate transformer and enricher (GeoIP data in this case)

{
    "class": "Telemetry",
    "ELK_Consumer": {
        "class": "Telemetry_Consumer",
        "type": "ElasticSearch",
        "host": "<the IP address of this container>",
        "index": "bigip",
        "port": 5044,
        "protocol": "http",
        "dataType": "f5.telemetry"
    }
}

Please be aware you will also need to create a Traffic_Log_Profile and attach this to your Virtual Server for the full end-to-end scenario

⁠Note

This container is purely used for demo purposes and not meant for production environments at all

Tag summary
Recent tags
Content type
Image
Digest
Size
716.6 MB
Last updated
over 6 years ago
docker pull boeboe/elk-f5-ts:latest