title: Parsing json using logstash (ELK stack)
body: <p>I have created a simple json like below</p>
  
  <pre><code>[
      {
          "Name": "vishnu",
          "ID": 1
      },
      {
          "Name": "vishnu",
          "ID": 1
      }
  ] 
  </code></pre>
  
  <p>I am holding this values in file named simple.txt . Then i used file beat to listen the file and send the new updates to port 5043,on other side i started the log-stash service which listen to this port in order to parse and pass the json to elastic search.
  log-stash is not processing the json values,it hangs in the middle. </p>
  
  <p><strong>logstash</strong></p>
  
  <pre><code>input {
    beats {
      port =&gt; 5043
      host =&gt; "0.0.0.0"
      client_inactivity_timeout =&gt; 3600
    }
  }
  filter {
    json {
      source =&gt; "message"
    }
  }
  output {
      stdout { codec =&gt; rubydebug }
  }
  </code></pre>
  
  <p><strong>filebeat config:</strong></p>
  
  <pre><code>filebeat.prospectors:
  
      - input_type: log
        paths:
          - filepath
      output.logstash:
        hosts: ["localhost:5043"]
  </code></pre>
  
  <p><strong>Logstash output</strong></p>
  
  <p>**</p>
  
  <pre><code>Sending Logstash's logs to D:/elasticdb/logstash-5.6.3/logstash-5.6.3/logs which is now configured via log4j2.properties
  [2017-10-31T19:01:17,574][INFO ][logstash.modules.scaffold] Initializing module {:module_name=&gt;"fb_apache", :directory=&gt;"D:/elasticdb/logstash-5.6.3/logstash-5.6.3/modules/fb_apache/configuration"}
  [2017-10-31T19:01:17,578][INFO ][logstash.modules.scaffold] Initializing module {:module_name=&gt;"netflow", :directory=&gt;"D:/elasticdb/logstash-5.6.3/logstash-5.6.3/modules/netflow/configuration"}
  [2017-10-31T19:01:18,301][INFO ][logstash.pipeline        ] Starting pipeline {"id"=&gt;"main", "pipeline.workers"=&gt;2, "pipeline.batch.size"=&gt;125, "pipeline.batch.delay"=&gt;5, "pipeline.max_inflight"=&gt;250}
  [2017-10-31T19:01:18,388][INFO ][logstash.inputs.beats    ] Beats inputs: Starting input listener {:address=&gt;"0.0.0.0:5043"}
  [2017-10-31T19:01:18,573][INFO ][logstash.pipeline        ] Pipeline main started
  [2017-10-31T19:01:18,591][INFO ][org.logstash.beats.Server] Starting server on port: 5043
  [2017-10-31T19:01:18,697][INFO ][logstash.agent           ] Successfully started Logstash API endpoint {:port=&gt;9600}
  </code></pre>
  
  <p>**</p>
  
  <p>Every time when i am running log-stash using command</p>
  
  <pre><code>logstash -f logstash.conf
  </code></pre>
  
  <p>And since there is no processing of json i am stopping that service by pressing ctrl + c .</p>
  
  <p>Please help me in finding the solution.Thanks in advance.</p>