Dec 20, 2016 13:56
Your welcome !
Dec 20, 2016 13:28
is there any thing you needed from me ?
Dec 20, 2016 12:52
about to print according to time stamp if the needed
Dec 20, 2016 12:52
No issue I will ask developer
Dec 20, 2016 12:48
For line for is not possible if any word comes with the "error" and print it ?
Dec 20, 2016 12:47
Yes correct
Dec 20, 2016 12:43
Now it is ok ?
Dec 20, 2016 12:37
4 MyApp2.log = "error" for last 24 hours ( No Stamp)
Dec 20, 2016 12:37
3 MyApp.log = "error" for last 24 hours (Oct 22 2015 7:20:09 AM+00:00 - error: ReferenceError: parent is not defined
Oct 22 2015 5:19:50 PM+00:00 - error: phone: Please enter a unique phone value.)
Dec 20, 2016 12:37
2 Nginx_access.log = "499" for last 24 hours => 27.97.130.105 - - [14/Nov/2016:11:48:34 +0000] "POST /example/apis/users/login HTTP/1.1" 499 0 "-" "-"
27.97.130.105 - - [14/Nov/2016:11:52:01 +0000] "POST /example/apis/users/login HTTP/1.1" 499 0 "-" "-"
Dec 20, 2016 12:35
Please review below format now :

1 Nginx+error.log = "upstream:" for 24 hours : (2016/11/14 11:47:25 [error] 6823#0: *5991 upstream timed out (110: Connection ti med out) while reading response header from upstream, client: 27.97.130.105, server: example.com, request: "POST /example.com/apis/users/signup HTTP/1.1", upst ream: "http://0.0.0.0:8080/apis/users/signup", host: "example
Dec 20, 2016 12:28
currently in the latest logs we don't have exact error that i can share that stamp.
Dec 20, 2016 12:28
can i share the old time stamp for the example ?
Dec 20, 2016 12:20
1 Nginx+error.log = "upstream:" for 24 hours I have added here wrong time stamp
Dec 20, 2016 12:15
Ok Let me correct it again:

1 Nginx+error.log = "upstream:" for 24 hours (Oct 22 2015 7:20:09 AM+00:00 - error: ReferenceError: parent is not defined
Oct 22 2015 5:19:50 PM+00:00 - error: phone: Please enter a unique phone value.)

2 Nginx_access.log = "499" for last 24 hours. (122.180.4.111 - - [16/Nov/2016:08:06:13 +0000] "POST /example/apis/users/login HTTP/1.1" 499 0 "-" "-")

3 MyApp.log = "error" for last 24 hours ()

4 MyApp2.log = "error" for last 24 hours ( No Stamp)
Dec 20, 2016 12:03
can't we use different script in the contradiction case "?
Dec 20, 2016 12:00
can i share the old format for file 4 ?
Dec 20, 2016 12:00
It has but for now it has been modified
Dec 20, 2016 11:57
Are you with me Jacob ?
Dec 20, 2016 11:54
Ok
Dec 20, 2016 11:52
is it ok now ?
Dec 20, 2016 11:51
file 1 = "upstream" "error" for last 24 hours
File 2 = "504 191" for last 24 hours

File 3 = "error" for last 24 hours

file 4 = "error" for last 24 hours
Dec 20, 2016 11:49
Correcting again

file 1 = "upstream" "error"
File 2 = "504 191"
File 3 = "error"
file 4 = "error"
Dec 20, 2016 11:47
and for file 3/4 we need to look again "error"
Dec 20, 2016 11:44
for file 2/3 the string we need to find "504 191" and "upstream"
Dec 20, 2016 11:43
yes correct
Dec 20, 2016 11:41
Ok sure..
Dec 20, 2016 11:39
sql: 'SELECT * FROM "Users" WHERE \'\'= ANY ()' },
original:
{ [error: syntax error at or near ")"]

The last file modified for now can't get time stapm for now
Are you with me ?
Dec 20, 2016 11:31
From the 4 file.
Dec 20, 2016 11:31
No latest error in this file so i am sharing the old one from log file
Dec 20, 2016 11:30
Dec 7 2016 6:44:35 AM+00:00 - ^[[32minfo^[[39m: Executing setup for users...
Dec 7 2016 6:44:35 AM+00:00 - ^[[31merror^[[39m: Error: listen EADDRINUSE
Dec 20, 2016 11:26
From 3rd log File :
Dec 20, 2016 11:24
In the nginx_access log i don't have entry for the the word "504 191" and its log file example is here for example word "200".

106.76.219.50 - - [19/Dec/2016:07:13:43 +0000] "GET /example/apis/states/8 HTTP/1.1" 200 2592 "-" "-"
Dec 20, 2016 11:19
2nd
Dec 20, 2016 11:18
2016/12/20 08:04:01 [error] 21314#0: *5950 open() "/usr/share/nginx/html/example.com/js/password.js" failed (2: No such file or directory), client: 112.196.26.252, server: example.com, request: "GET /js/password.js HTTP/1.1", host: "example.com", referrer: "https://example.com/inkind/apis/users/profile/password/[email protected]&token=9946d3b8-2747-4dac-9782-b905a8f79a87"
Dec 20, 2016 11:18
so here is the example for the word "error"
Dec 20, 2016 11:14
ok sure
Dec 20, 2016 11:14
only for 24 hours only with the time stamp where "error" | upstream
Dec 20, 2016 11:11
I have to export logs from 4 files (Nginx_error.log/nginx_access.log+myapp.log+2ndapp.log)
Dec 20, 2016 11:11
Great Thanks Jacob
Dec 20, 2016 11:09
How are you ?
Dec 20, 2016 11:09
Hi Jacob
 
Feb 4, 2016 13:54
I am using same forever start -a --uid myapp path/to/app.js to stop it forever stop myapp
Feb 4, 2016 13:51
If its working manually it should work with crontab also try to set permission chmod +x server.sh
Feb 4, 2016 13:45
or forever start -a /var/www/server/server.js
Feb 4, 2016 13:44
forever start -n server.js

where -n would be --no-log "Forces forever to NOT log stuff"
Feb 4, 2016 13:40
Use the -a or --append option to append log.
Feb 4, 2016 13:39
It saying for for the log /root/.forever/server.log you can create it manually. touch /root/.forever/server.log
Feb 4, 2016 13:34
Sorry little mistake here : give try with an uid to start forever --uid "myapp" start server.js to stop it forever stop myapp
Feb 4, 2016 13:34
You can use an uid to start forever --uid "myapp" start server.js to stop it forever --uid "myapp" stop server.js