title: Logstash csv input output to elastic search
body: <p>I'm new to <strong>Logstash</strong> and I want to visualize some <strong>csv</strong> data using <em>Logstash</em> and <strong>Elasticsearch</strong> and <strong>Kibana</strong>.</p>
  
  <p>My <em>csv</em> format looks like this :</p>
  
  <pre><code>        * Level 2 SMS *
  [APAC] tre Alerts Feed is SEVERE on dtryee  (rajdhani-apac)
  Date/Time: 2014.07.31 13:45:32
  Last Value: SEVERE
  Event age: 50m,sent,Thu  31 Jul 2014 03:45:47 +0000,2010-04-01,1,A***********,S************,outbound-api,+1234567,+876543287,-0.02300,USD
  </code></pre>
  
  <p>Am using conf file as following :</p>
  
  <pre><code>input {
      file {
          path =&gt; ["/opt/sms_log.csv"]
          start_position =&gt; "beginning"
      }
  }
  filter {
      csv {
          columns =&gt; ['body', 'status', 'SentDate',  'ApiVersion', 'NumSegments', 'AccountSid', 'Sid', 'Direction', 'From', 'To', 'Price', 'PriceUnit']
      }
  }
  output {
    elasticsearch { host =&gt; localhost }
  }
  </code></pre>
  
  <p>I'm not getting the desired output. Can anybody have a look at these and provide me with a piece of advice?</p>