From 2909004bc30a2def067130944eb6e0f30c0e1d3e Mon Sep 17 00:00:00 2001 From: akbarjimi Date: Wed, 17 Mar 2021 15:01:01 +0330 Subject: [PATCH] When you're reading this, i'm on my way home...Happy New Year --- filebeat.yml | 7 +++++-- my.cnf | 2 +- run.sh | 9 +++++++++ 3 files changed, 15 insertions(+), 3 deletions(-) create mode 100755 run.sh diff --git a/filebeat.yml b/filebeat.yml index 3f890cb..e319c29 100755 --- a/filebeat.yml +++ b/filebeat.yml @@ -6,7 +6,7 @@ filebeat.config: processors: - add_cloud_metadata: ~ - add_docker_metadata: ~ - + filebeat.inputs: #------------------------------ Log input -------------------------------- - type: log @@ -129,7 +129,10 @@ filebeat.inputs: # for Java Stack Traces or C-Line Continuation # The regexp Pattern that has to be matched. The example pattern matches all lines starting with [ - # multiline.pattern: ^\[ + multiline.pattern: '^\#[[:space:]]Time' + multiline.negate: true + multiline.match: after + # Defines if the pattern set under pattern should be negated or not. Default is false. #multiline.negate: false diff --git a/my.cnf b/my.cnf index 2638c57..498c4cf 100644 --- a/my.cnf +++ b/my.cnf @@ -15,5 +15,5 @@ innodb_write_io_threads = 16 innodb_flush_neighbors = 0 innodb_flushing_avg_loops = 100 innodb_page_cleaners = 8 -long_query_time = 0.2 +long_query_time = 0.0 slow_query_log = ON diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..b3942f7 --- /dev/null +++ b/run.sh @@ -0,0 +1,9 @@ +/home/akbarjimi/Projects/Liwo/vendor/bin/sail down; +sudo rm -rf /home/akbarjimi/Projects/Liwo/storage/logs/mysql; +docker container prune; docker image prune; docker network prune; docker volume prune; +docker network create hi; +/home/akbarjimi/Projects/Liwo/vendor/bin/sail up --build; +sleep 10; +/home/akbarjimi/Projects/Liwo/vendor/bin/sail artisan migrate:fresh --seed; + +