How to view data Logstash hit Elasticsearch in Elasticsearch

Source: Internet
Author: User
Tags logstash

# cat syslog02.conf #filename: syslog02.conf #注意这个是要用 # comment out input{        file{= ["/var/ Log/*.log"]    }}output{    elasticsearch {        = = ["12x.xx.15.1xx : 9200"]    }}

See if there is a problem with the configuration file:

# .. /bin/logstash-f syslog02.conf-tsending logstash's logs to/usr/local/logstash/logs which is now C onfigured via log4j2.properties[]--01t09: Wu,][fatal ][logstash.runner is          11 (byte1

Add an index configuration under Output->elasticsearch:

cat syslog02.conf #filename: syslog02.confinput{    file{        = ["/var/log/*.log " ]    }}output{    elasticsearch {        = = ["123.57.15.154:9200" ]        "syslog02_log"    }}

Once again, simply test the configuration file:

# .. /bin/logstash-f syslog02.conf-tsending logstash's logs to/usr/local/logstash/logs which is now C onfigured via log4j2.propertiesConfiguration ok[- -01t11:56 ,791][info][logstash.runner          ] Using config.test_and_exit mode. Config Validation Result:ok. Exiting Logstash

Start and execute in the background:

# .. /bin/logstash-f syslog02.conf &

How to view data Logstash hit Elasticsearch in Elasticsearch

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.