×ðÁú¿­Ê±

ÔõÑùÔÚLinuxÉÏÉèÖø߿ÉÓõÄÈÕÖ¾ÖÎÀí

ÔõÑùÔÚlinuxÉÏÉèÖø߿ÉÓõÄÈÕÖ¾ÖÎÀí

ÔÚÏÖ´úµÄÅÌËãÇéÐÎÖÐ £¬ÈÕÖ¾ÖÎÀíÊǺÜÊÇÖ÷ÒªµÄ¡£Í¨¹ýÓÐÓõØÍøÂçºÍÆÊÎöÈÕÖ¾ £¬ÎÒÃÇ¿ÉÒÔÏàʶϵͳµÄÔËÐÐ״̬ £¬ÊµÊ±·¢Ã÷Ï¢Õù¾öÎÊÌâ £¬Ìá¸ßϵͳµÄ¿ÉÓÃÐÔºÍÇå¾²ÐÔ¡£ÔÚLinuxϵͳÉÏ £¬ÎÒÃÇ¿ÉÒÔͨ¹ýÉèÖø߿ÉÓõÄÈÕÖ¾ÖÎÀíÀ´È·±£ÈÕÖ¾µÄ³¤ÆÚÐÔ¡¢¿É¿¿ÐԺͿɻá¼ûÐÔ¡£±¾ÎĽ«ÏêϸÏÈÈÝÔõÑùÔÚlinuxÉÏÉèÖø߿ÉÓõÄÈÕÖ¾ÖÎÀí £¬²¢Ìṩ´úÂëʾÀý¡£

Ò»¡¢×°ÖúÍÉèÖÃÈÕÖ¾ÊÕÂÞÊðÀí

Ê×ÏÈ £¬ÎÒÃÇÐèÒªÔÚÿ̨ÐèÒªÊÕÂÞÈÕÖ¾µÄЧÀÍÆ÷ÉÏ×°ÖúÍÉèÖÃÈÕÖ¾ÊÕÂÞÊðÀí¡£³£ÓõÄÈÕÖ¾ÊÕÂÞÊðÀíÓÐLogstash¡¢FluentdºÍFilebeatµÈ¡£

ÒÔ×°ÖúÍÉèÖÃLogstashΪÀý £¬ÎÒÃÇ¿ÉÒÔƾ֤ÒÔÏ°취À´¾ÙÐвÙ×÷£º

ÏÂÔغÍ×°ÖÃLogstash

curl -L -O https://artifacts.elastic.co/downloads/logstash/logstash-7.10.0.tar.gz
tar -xzf logstash-7.10.0.tar.gz

µÇ¼ºó¸´ÖÆ

½¨ÉèLogstashÉèÖÃÎļþ

ÔÚLogstashµÄ×°ÖÃĿ¼Öн¨ÉèÒ»¸öÃûΪlogstash.confµÄÉèÖÃÎļþ £¬ÄÚÈÝÈçÏ£º

input {
  beats {
    port => 5044
  }
}

output {
  elasticsearch {
    hosts => ["localhost:9200"]
  }
}

µÇ¼ºó¸´ÖÆ

Æô¶¯Logstash

./logstash-7.10.0/bin/logstash -f logstash.conf

µÇ¼ºó¸´ÖÆ

¶þ¡¢ÉèÖÃÈÕÖ¾´æ´¢¼¯Èº

½ÓÏÂÀ´ £¬ÎÒÃÇÐèÒªÉèÖÃÒ»¸ö¸ß¿ÉÓõÄÈÕÖ¾´æ´¢¼¯Èº £¬ÒÔÈ·±£ÈÕÖ¾µÄ³¤ÆÚÐԺͿɿ¿ÐÔ¡£³£ÓõÄÈÕÖ¾´æ´¢¼¯ÈºÓÐElasticsearchºÍSplunkµÈ¡£

ÒÔÉèÖÃElasticsearchΪÀý £¬ÎÒÃÇ¿ÉÒÔƾ֤ÒÔÏ°취À´¾ÙÐвÙ×÷£º

ÏÂÔغÍ×°ÖÃElasticsearch

curl -L -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.10.0.tar.gz
tar -xzf elasticsearch-7.10.0.tar.gz

µÇ¼ºó¸´ÖÆ

ÐÞ¸ÄElasticsearchÉèÖÃÎļþ

ÔÚElasticsearchµÄ×°ÖÃĿ¼ÖеÄconfigĿ¼Ï £¬±à¼­elasticsearch.ymlÎļþ £¬ÐÞ¸ÄÒÔÏÂÉèÖãº

cluster.name: my-cluster
node.name: my-node
network.host: 0.0.0.0

µÇ¼ºó¸´ÖÆ

Æô¶¯Elasticsearch

./elasticsearch-7.10.0/bin/elasticsearch

µÇ¼ºó¸´ÖÆ

Èý¡¢ÉèÖÃÈÕÖ¾ÍøÂçºÍÆÊÎöƽ̨

×îºó £¬ÎÒÃÇÐèÒªÉèÖÃÒ»¸öÈÕÖ¾ÍøÂçºÍÆÊÎöƽ̨ £¬ÒÔ±ãÎÒÃÇ¿ÉÒÔÀû±ãµØÅÌÎʺÍÆÊÎöÈÕÖ¾¡£³£ÓõÄÈÕÖ¾ÍøÂçºÍÆÊÎöƽ̨ÓÐKibanaºÍSplunkµÈ¡£

ÒÔÉèÖÃKibanaΪÀý £¬ÎÒÃÇ¿ÉÒÔƾ֤ÒÔÏ°취À´¾ÙÐвÙ×÷£º

ÏÂÔغÍ×°ÖÃKibana

curl -L -O https://artifacts.elastic.co/downloads/kibana/kibana-7.10.0-linux-x86_64.tar.gz
tar -xzf kibana-7.10.0-linux-x86_64.tar.gz

µÇ¼ºó¸´ÖÆ

ÐÞ¸ÄKibanaÉèÖÃÎļþ

ÔÚKibanaµÄ×°ÖÃĿ¼ÖеÄconfigĿ¼Ï £¬±à¼­kibana.ymlÎļþ £¬ÐÞ¸ÄÒÔÏÂÉèÖãº

server.host: "0.0.0.0"
elasticsearch.hosts: ["http://localhost:9200"]

µÇ¼ºó¸´ÖÆ

Æô¶¯Kibana

./kibana-7.10.0-linux-x86_64/bin/kibana

µÇ¼ºó¸´ÖÆ

ͨ¹ýÒÔÉÏÉèÖà £¬ÎÒÃǾͿÉÒÔÔÚLinuxÉÏʵÏָ߿ÉÓõÄÈÕÖ¾ÖÎÀíÁË¡£LogstashÈÏÕæÊÕÂÞÈÕÖ¾²¢·¢Ë͵½Elasticsearch £¬ElasticsearchÈÏÕæ´æ´¢ÈÕÖ¾ £¬²¢ÌṩÅÌÎʺÍÆÊÎö¹¦Ð§ £¬KibanaÔòÌṩÁËÒ»¸öÓû§ÓѺõÄWeb½çÃæ £¬Àû±ãÎÒÃǾÙÐÐÈÕÖ¾µÄÅÌÎʺÍÆÊÎö¡£

×ܽ᣺

ͨ¹ý±¾ÎĵÄÏÈÈݺÍʾÀý £¬ÎÒÃÇÏàʶÁËÔõÑùÔÚlinuxÉÏÉèÖø߿ÉÓõÄÈÕÖ¾ÖÎÀí¡£Õâ¹ØÓÚ°ü¹ÜϵͳµÄÎȹÌÐÔºÍÇå¾²ÐÔºÜÊÇÖ÷Òª¡£Ï£Íû±¾ÎĶÔÄúÓÐËù×ÊÖú£¡

ÒÔÉϾÍÊÇÔõÑùÔÚLinuxÉÏÉèÖø߿ÉÓõÄÈÕÖ¾ÖÎÀíµÄÏêϸÄÚÈÝ £¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí £¬°æȨÕùÒéÓë±¾Õ¾ÎÞ¹Ø £¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿­Ê±ÂËÓÍ»úÍø¹Ù·½Ì¬¶È £¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ £¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢ £¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢ £¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿­Ê±ÊµÊ±ÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ×ðÁú¿­Ê±

13452372176

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎå £¬9:30-18:30 £¬½ÚãåÈÕÐÝÏ¢

QR code
¡¾ÍøÕ¾µØͼ¡¿¡¾sitemap¡¿