# FileBeat 1.3.1 sends logs containing json to logstash 2.4

**URL:** <https://discuss.elastic.co/t/filebeat-1-3-1-sends-logs-containing-json-to-logstash-2-4/172622>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 16, 2019, 2:52am UTC](https://discuss.elastic.co/t/filebeat-1-3-1-sends-logs-containing-json-to-logstash-2-4/172622 "2019-03-16T02:52:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jerry\_Wang1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jerry_wang1/32/41986_2.png) [@Jerry\_Wang1](https://discuss.elastic.co/u/Jerry_Wang1)\
**Post date:** [March 16, 2019, 2:52am UTC](https://discuss.elastic.co/t/filebeat-1-3-1-sends-logs-containing-json-to-logstash-2-4/172622/1 "2019-03-16T02:52:01Z")

</div>

My log format is a json string per each line as below.

```
{"level":"INFO","message":"Loading database shards","source":"UBS.Bootstrap","details":"","type":"ubs-log4net","@version":1,"host":"JERRYWANG01","@timestamp":"2019-03-16T02:36:26,292"}
{"level":"INFO","message":"1 database servers are detected","source":"UBS.Data.Sharding.ShardManager","details":"","type":"ubs-log4net","@version":1,"host":"JERRYWANG01","@timestamp":"2019-03-16T02:36:31,659"}

```

My Logstash 2.4 is configured with tcp input as below.

```
input {
    tcp {
        port => 6001
        codec => json_lines { }
    }
}

```

It works well when I send the log file directly to TCP port 6001.

Now I want to transfer the logs via filebeat. Because I am using an old version logstash , I choose filebeat 1.3.1

First added `beat` input in logstash

```
input {
    beats {
        port => 5044
        codec => json_lines { }
    }
}

```

And here is `filebeat.yml`

```
filebeat:
  prospectors:
    -
      paths:
        - C:\Users\Jerry.Wang\logs\*.log

      input_type: log

  registry_file: "C:/ProgramData/filebeat/registry"

output:

  logstash:
    # The Logstash hosts
    hosts: ["192.168.2.99:5044"]

```

I can see logs are transferred successfully from filebeat output, but it is not stored by logstash. What could be wrong?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 13, 2019, 2:52am UTC](https://discuss.elastic.co/t/filebeat-1-3-1-sends-logs-containing-json-to-logstash-2-4/172622/2 "2019-04-13T02:52:02Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
