简体   繁体   English

将日志 prestashop 发送到 kibana

[英]Send the logs prestashop to kibana

How i can send the logs of my application which is in prestashop to kibana?如何将 prestashop 中的应用程序日志发送到 kibana?
as you know prestashop save the logs in database.如您所知,prestashop 将日志保存在数据库中。 Thanks谢谢

You can use one of these approachs:您可以使用以下方法之一:

  • Using the official framework ( elasticsearch-php ) you create a single file script that communicates directly with your ES cluster and sends the data via a direct query to the db:使用官方框架 ( elasticsearch-php ),您可以创建一个文件脚本,该脚本直接与您的 ES 集群通信,并通过直接查询将数据发送到数据库:

    select * from ps_log where date_add > xxxx select * 来自 ps_log where date_add > xxxx

that you can implement in your script.您可以在脚本中实现。

  • You create a daily CSV log of the table data with a PHP script and "ingest" this log to your elasticsearch cluster using logstash .您使用 PHP 脚本创建表数据的每日 CSV 日志,并使用logstash将此日志“摄取”到您的 elasticsearch 集群。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM