title: logstash not printing output until I CTRL-C
body: <p>I've setup logstash to read XML files. It does do this but it doesn't print the output to stdout until I quit the app (ctrl+c). It then prints out the structures it has intrepreted which are correct:</p>
  
  <p>.conf:</p>
  
  <pre><code>input {
      file {
          path =&gt; "C:/Projects/Python Projects/SolAdmin/SolAdmin/ClientConnectionsWide_*.xml"
          start_position =&gt; beginning
          ignore_older =&gt; 0
          sincedb_path =&gt; "C:/Projects/Elastic Stack/logstash-2.3.4/logstash-2.3.4/sincedb"
          codec =&gt; multiline {
              pattern =&gt; "^&lt;rpc-reply.*\&gt;"
              negate =&gt; true
              what =&gt; "previous"
          }
      }
  }
  
  filter {
      grok {
        match =&gt; { "message" =&gt; "%{GREEDYDATA:xmldata}" }
      }
      xml {
          source =&gt; "xmldata"
          store_xml =&gt; "false"
          xpath =&gt; [
              "rpc-reply/rpc/show/client/client/connection/foreign-address/text()", "client_ip",
              "rpc-reply/rpc/show/client/client/connection/round-trip-time-smooth-us/text()", "smooth_round_trip"
          ]
      }
  }
  
  output {
          stdout {
          codec =&gt; rubydebug 
      }
  }
  </code></pre>
  
  <p>.xml:</p>
  
  <pre><code>&lt;rpc-reply semp-version="soltr/7_1_1"&gt;
    &lt;rpc&gt;
      &lt;show&gt;
        &lt;client&gt;
          &lt;client&gt;
            &lt;name&gt;BSPFODS0914/6548/#00000001&lt;/name&gt;
            &lt;message-vpn&gt;fod_prod&lt;/message-vpn&gt;
            &lt;connection&gt;
              &lt;protocol&gt;tcp&lt;/protocol&gt;
              &lt;is-zip&gt;false&lt;/is-zip&gt;
              &lt;is-ssl&gt;false&lt;/is-ssl&gt;
              &lt;receive-queue-bytes&gt;0&lt;/receive-queue-bytes&gt;
              &lt;receive-queue-segments&gt;0&lt;/receive-queue-segments&gt;
              &lt;send-queue-bytes&gt;0&lt;/send-queue-bytes&gt;
              &lt;send-queue-segments&gt;0&lt;/send-queue-segments&gt;
              &lt;local-address&gt;10.137.4.211:55555&lt;/local-address&gt;
              &lt;foreign-address&gt;10.134.100.72:52974&lt;/foreign-address&gt;
              &lt;state&gt;ESTABLISHED&lt;/state&gt;
              &lt;maximum-segment-size&gt;1460&lt;/maximum-segment-size&gt;
              &lt;bytes-sent-32bits&gt;52206343&lt;/bytes-sent-32bits&gt;
              &lt;bytes-received-32bits&gt;6779578&lt;/bytes-received-32bits&gt;
              &lt;retransmit-time-ms&gt;278.567&lt;/retransmit-time-ms&gt;
              &lt;round-trip-time-smooth-us&gt;737.83&lt;/round-trip-time-smooth-us&gt;
              &lt;round-trip-time-minimum-us&gt;584.758&lt;/round-trip-time-minimum-us&gt;
              &lt;round-trip-time-variance-us&gt;60.759&lt;/round-trip-time-variance-us&gt;
              &lt;advertised-window-size&gt;262144&lt;/advertised-window-size&gt;
              &lt;transmit-window-size&gt;149116&lt;/transmit-window-size&gt;
              &lt;bandwidth-window-size&gt;22617&lt;/bandwidth-window-size&gt;
              &lt;congestion-window-size&gt;131072&lt;/congestion-window-size&gt;
              &lt;slow-start-threshold-size&gt;262144&lt;/slow-start-threshold-size&gt;
              &lt;segments-received-out-of-order&gt;0&lt;/segments-received-out-of-order&gt;
              &lt;fast-retransmits&gt;0&lt;/fast-retransmits&gt;
              &lt;timed-retransmits&gt;60&lt;/timed-retransmits&gt;
              &lt;connection-uptime-s&gt;16886&lt;/connection-uptime-s&gt;
              &lt;blocked-cycles-percent&gt;0&lt;/blocked-cycles-percent&gt;
              &lt;interface&gt;1/6/1&lt;/interface&gt;
            &lt;/connection&gt;
          &lt;/client&gt;
        &lt;/client&gt;
      &lt;/show&gt;
    &lt;/rpc&gt;
  &lt;execute-result code="ok"/&gt;
  &lt;/rpc-reply&gt;
  </code></pre>
  
  <p>result:</p>
  
  <pre><code>C:\Projects\Elastic Stack\logstash-2.3.4\logstash-2.3.4&gt;bin\logstash -f config\Config.conf
  Using JAVA_HOME=C:\Program Files (x86)\Java\jre1.8.0_91 retrieved from C:\ProgramData\Oracle\java\javapath\java.exe
  io/console not supported; tty will not be manipulated
  Settings: Default pipeline workers: 8
  Pipeline main started
  ←[33mSIGINT received. Shutting down the agent. {:level=&gt;:warn}←[0m
  stopping pipeline {:id=&gt;"main"}
  {
             "@timestamp" =&gt; "2016-07-26T15:27:43.866Z",
                "message" =&gt; "&lt;rpc-reply semp-version=\"soltr/7_1_1\"&gt;\r\n  &lt;rpc&gt;\r\n    &lt;show&gt;\r\n      &lt;client&gt;\r\n        &lt;client&gt;\r\n          &lt;name&gt;BSPFODS0
               "@version" =&gt; "1",
                   "tags" =&gt; [
          [0] "multiline"
      ],
                   "path" =&gt; "C:/Projects/Python Projects/SolAdmin/SolAdmin/ClientConnectionsWide_20160726-131028.xml",
                   "host" =&gt; "CP-FOD-110805",
                "xmldata" =&gt; "&lt;rpc-reply semp-version=\"soltr/7_1_1\"&gt;\r\n  &lt;rpc&gt;\r\n    &lt;show&gt;\r\n      &lt;client&gt;\r\n        &lt;client&gt;\r\n          &lt;name&gt;BSPFODS0
              "client_ip" =&gt; [
          [0] "10.134.100.72:52974"
      ],
      "smooth_round_trip" =&gt; [
          [0] "737.83"
      ]
  }
  </code></pre>