# Test with broken line protocol lines
[[inputs.socket_listener]]
  service_address = "tcp://127.0.0.1:0"
  splitting_strategy = "variable length"
  splitting_length_field = {offset=0, bytes=2, endianness="be", header_length=2}

  data_format = "xpath_protobuf"

  xpath_native_types = true
  xpath_protobuf_file = "dnsmessage.proto"
  xpath_protobuf_type = "PBDNSMessage"
  xpath_protobuf_import_paths = [".", "./testcases/powerdns"]

  [[inputs.socket_listener.xpath]]
    metric_name = "'powerdns'"
    fields_bytes_as_hex = ["from", "to", "messageId"]
    field_selection = "descendant::*"
