{"level":"info","message":"Initializing LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:52:30.060Z"} {"level":"info","message":"Configuration loaded successfully","service":"logvista-agent","timestamp":"2025-07-24T07:52:30.072Z"} {"level":"info","message":"Connection test successful:","service":"LogVista Central System","status":"ok","timestamp":"2025-07-24T07:52:30.279Z","version":"1.0.0"} {"level":"info","message":"LogVista Agent initialized successfully","service":"logvista-agent","timestamp":"2025-07-24T07:52:30.285Z"} {"level":"info","message":"Starting LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:52:30.286Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\app.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:52:30.288Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\error.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:52:30.290Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\access.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:52:30.291Z"} {"level":"info","message":"Started watching project logs in: E:\\Freelance\\LogVistaV2\\test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:52:30.292Z"} {"level":"info","message":"Starting LogVista Agent Scheduler","service":"logvista-agent","timestamp":"2025-07-24T07:52:30.293Z"} {"level":"info","message":"Started metrics task","service":"logvista-agent","timestamp":"2025-07-24T07:52:30.296Z"} {"level":"info","message":"Started logs task","service":"logvista-agent","timestamp":"2025-07-24T07:52:30.297Z"} {"level":"info","message":"Started retry task","service":"logvista-agent","timestamp":"2025-07-24T07:52:30.297Z"} {"level":"info","message":"Started serverInfo task","service":"logvista-agent","timestamp":"2025-07-24T07:52:30.297Z"} {"level":"info","message":"All scheduled tasks started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:52:30.298Z"} {"level":"info","message":"LogVista Agent started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:52:30.298Z"} {"config":{"batchSize":100,"centralUrl":"http://localhost:3001","collectionInterval":30},"isRunning":true,"level":"info","message":"Agent Status:","projects":[{"logPaths":3,"name":"test-api-project","path":"E:\\Freelance\\LogVistaV2\\test-api-project"}],"scheduler":{"activeTasks":["metrics","logs","retry","serverInfo"],"isRunning":true,"taskCount":4},"service":"logvista-agent","timestamp":"2025-07-24T07:52:30.299Z"} {"data":{"error":"Not Found","message":"Route POST:/api/servers/register not found","statusCode":404},"level":"error","message":"Upload failed for server-info - Server Error:","service":"logvista-agent","status":404,"statusText":"Not Found","timestamp":"2025-07-24T07:52:38.990Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:52:38.990Z"} {"data":{"error":"Not Found","message":"Route POST:/api/servers/register not found","statusCode":404},"level":"error","message":"Upload failed for server-info - Server Error:","service":"logvista-agent","status":404,"statusText":"Not Found","timestamp":"2025-07-24T07:52:40.004Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:52:40.005Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\logs.js:51:36\n\n 48 // Submit logs from agents\n 49 fastify.post('/', async (request, reply) => {\n 50 try {\n→ 51 const log = await prisma.log.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:52:40.473Z\"),\n + message: String\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:52:40.800Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:52:40.801Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\logs.js:51:36\n\n 48 // Submit logs from agents\n 49 fastify.post('/', async (request, reply) => {\n 50 try {\n→ 51 const log = await prisma.log.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:52:41.812Z\"),\n + message: String\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:52:41.815Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:52:41.816Z"} {"data":{"error":"Not Found","message":"Route POST:/api/servers/register not found","statusCode":404},"level":"error","message":"Upload failed for server-info - Server Error:","service":"logvista-agent","status":404,"statusText":"Not Found","timestamp":"2025-07-24T07:52:42.020Z"} {"code":"ERR_BAD_REQUEST","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"hostname\":\"DESKTOP-OQNP5BM\",\"platform\":\"win32\",\"architecture\":\"x64\",\"os\":{\"platform\":\"Windows\",\"distro\":\"Microsoft Windows 11 Pro\",\"release\":\"10.0.26100\",\"kernel\":\"10.0.26100\",\"arch\":\"x64\"},\"cpu\":{\"manufacturer\":\"Intel\",\"brand\":\"Core™ i5-8250U\",\"cores\":8,\"physicalCores\":4,\"speed\":1.6},\"system\":{\"manufacturer\":\"Acer\",\"model\":\"Aspire A515-51G\",\"version\":\"V2.02\",\"serial\":\"NXGWJSI00375106D9E3400\"},\"memory\":{\"total\":12754456576,\"free\":1346801664},\"uptime\":592214.718,\"loadavg\":[0,0,0],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:52:42.017Z\"},\"projects\":[{\"name\":\"test-api-project\",\"path\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\",\"logPaths\":[\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\error.log\",\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\"]}]}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"850","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/servers/register","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"level":"error","message":"Error updating server information: Request failed with status code 404","name":"AxiosError","request":{"_closed":true,"_contentLength":850,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/servers/register HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 850\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/servers/register","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"850","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/servers/register","pathname":"/api/servers/register","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":850,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/servers/register","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","93","Date","Thu, 24 Jul 2025 07:52:42 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/servers/register","socket":null,"statusCode":404,"statusMessage":"Not Found","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"response":{"config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"hostname\":\"DESKTOP-OQNP5BM\",\"platform\":\"win32\",\"architecture\":\"x64\",\"os\":{\"platform\":\"Windows\",\"distro\":\"Microsoft Windows 11 Pro\",\"release\":\"10.0.26100\",\"kernel\":\"10.0.26100\",\"arch\":\"x64\"},\"cpu\":{\"manufacturer\":\"Intel\",\"brand\":\"Core™ i5-8250U\",\"cores\":8,\"physicalCores\":4,\"speed\":1.6},\"system\":{\"manufacturer\":\"Acer\",\"model\":\"Aspire A515-51G\",\"version\":\"V2.02\",\"serial\":\"NXGWJSI00375106D9E3400\"},\"memory\":{\"total\":12754456576,\"free\":1346801664},\"uptime\":592214.718,\"loadavg\":[0,0,0],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:52:42.017Z\"},\"projects\":[{\"name\":\"test-api-project\",\"path\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\",\"logPaths\":[\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\error.log\",\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\"]}]}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"850","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/servers/register","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"data":{"error":"Not Found","message":"Route POST:/api/servers/register not found","statusCode":404},"headers":{"connection":"keep-alive","content-length":"93","content-security-policy":"default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","content-type":"application/json; charset=utf-8","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","date":"Thu, 24 Jul 2025 07:52:42 GMT","keep-alive":"timeout=72","origin-agent-cluster":"?1","referrer-policy":"no-referrer","strict-transport-security":"max-age=15552000; includeSubDomains","vary":"Origin","x-content-type-options":"nosniff","x-dns-prefetch-control":"off","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"0"},"request":{"_closed":true,"_contentLength":850,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/servers/register HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 850\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/servers/register","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"850","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/servers/register","pathname":"/api/servers/register","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":850,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/servers/register","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","93","Date","Thu, 24 Jul 2025 07:52:42 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/servers/register","socket":null,"statusCode":404,"statusMessage":"Not Found","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"status":404,"statusText":"Not Found"},"service":"logvista-agent","stack":"AxiosError: Request failed with status code 404\n at settle (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:2090:12)\n at IncomingMessage.handleStreamEnd (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3207:11)\n at IncomingMessage.emit (node:events:519:35)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadServerInfo (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:61:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.updateServerInfo (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:211:7)","status":404,"timestamp":"2025-07-24T07:52:42.020Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\logs.js:51:36\n\n 48 // Submit logs from agents\n 49 fastify.post('/', async (request, reply) => {\n 50 try {\n→ 51 const log = await prisma.log.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:52:43.823Z\"),\n + message: String\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:52:43.825Z"} {"code":"ERR_BAD_REQUEST","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T07:52:30.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"78.41%\",\"disk\":\"21.96%\",\"level\":\"info\",\"memory\":\"22.00%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:22:30\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:52:30.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"78.41%\",\"disk\":\"21.96%\",\"level\":\"info\",\"memory\":\"22.00%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:22:30\",\"type\":\"system_metrics\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:52:43.821Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"858","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"level":"error","message":"Error in log upload: Request failed with status code 400","name":"AxiosError","request":{"_closed":true,"_contentLength":858,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 858\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"858","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":858,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","719","Date","Thu, 24 Jul 2025 07:52:43 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/logs","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"response":{"config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T07:52:30.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"78.41%\",\"disk\":\"21.96%\",\"level\":\"info\",\"memory\":\"22.00%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:22:30\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:52:30.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"78.41%\",\"disk\":\"21.96%\",\"level\":\"info\",\"memory\":\"22.00%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:22:30\",\"type\":\"system_metrics\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:52:43.821Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"858","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"data":{"error":"\nInvalid `prisma.log.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\logs.js:51:36\n\n 48 // Submit logs from agents\n 49 fastify.post('/', async (request, reply) => {\n 50 try {\n→ 51 const log = await prisma.log.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:52:43.823Z\"),\n + message: String\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `message` is missing."},"headers":{"connection":"keep-alive","content-length":"719","content-security-policy":"default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","content-type":"application/json; charset=utf-8","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","date":"Thu, 24 Jul 2025 07:52:43 GMT","keep-alive":"timeout=72","origin-agent-cluster":"?1","referrer-policy":"no-referrer","strict-transport-security":"max-age=15552000; includeSubDomains","vary":"Origin","x-content-type-options":"nosniff","x-dns-prefetch-control":"off","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"0"},"request":{"_closed":true,"_contentLength":858,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 858\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"858","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":858,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","719","Date","Thu, 24 Jul 2025 07:52:43 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/logs","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"status":400,"statusText":"Bad Request"},"service":"logvista-agent","stack":"AxiosError: Request failed with status code 400\n at settle (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:2090:12)\n at IncomingMessage.handleStreamEnd (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3207:11)\n at IncomingMessage.emit (node:events:519:35)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:42:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:138:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:37:7)","status":400,"timestamp":"2025-07-24T07:52:43.825Z"} {"data":{"error":"\nInvalid `prisma.metric.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\metrics.js:47:42\n\n 44 // Submit metrics from agents\n 45 fastify.post('/', async (request, reply) => {\n 46 try {\n→ 47 const metric = await prisma.metric.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:53:08.990Z\"),\n + server: {\n + create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n + connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n + connect: ServerWhereUniqueInput\n + }\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `server` is missing."},"level":"error","message":"Upload failed for metrics - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:53:09.142Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:53:09.142Z"} {"data":{"error":"\nInvalid `prisma.metric.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\metrics.js:47:42\n\n 44 // Submit metrics from agents\n 45 fastify.post('/', async (request, reply) => {\n 46 try {\n→ 47 const metric = await prisma.metric.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:53:10.150Z\"),\n + server: {\n + create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n + connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n + connect: ServerWhereUniqueInput\n + }\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `server` is missing."},"level":"error","message":"Upload failed for metrics - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:53:10.155Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:53:10.156Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\logs.js:51:36\n\n 48 // Submit logs from agents\n 49 fastify.post('/', async (request, reply) => {\n 50 try {\n→ 51 const log = await prisma.log.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:53:10.699Z\"),\n + message: String\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:53:10.709Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:53:10.709Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\logs.js:51:36\n\n 48 // Submit logs from agents\n 49 fastify.post('/', async (request, reply) => {\n 50 try {\n→ 51 const log = await prisma.log.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:53:11.714Z\"),\n + message: String\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:53:11.717Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:53:11.717Z"} {"data":{"error":"\nInvalid `prisma.metric.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\metrics.js:47:42\n\n 44 // Submit metrics from agents\n 45 fastify.post('/', async (request, reply) => {\n 46 try {\n→ 47 const metric = await prisma.metric.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:53:12.166Z\"),\n + server: {\n + create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n + connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n + connect: ServerWhereUniqueInput\n + }\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `server` is missing."},"level":"error","message":"Upload failed for metrics - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:53:12.168Z"} {"code":"ERR_BAD_REQUEST","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"metrics\":[{\"type\":\"system\",\"cpuUsage\":29.13787825479969,\"ramUsage\":10767.35546875,\"ramTotal\":12163.59765625,\"diskUsage\":455179.765625,\"diskTotal\":1441429.3046875,\"processCount\":298,\"loadAverage\":0,\"timestamp\":\"2025-07-24T07:53:08.718Z\"},{\"type\":\"project\",\"projectName\":\"test-api-project\",\"timestamp\":\"2025-07-24T07:53:08.718Z\",\"projectDiskUsage\":7.465029716491699}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:53:12.164Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"435","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/metrics","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"level":"error","message":"Error in metrics collection and upload: Request failed with status code 400","name":"AxiosError","request":{"_closed":true,"_contentLength":435,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/metrics HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 435\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/metrics","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"435","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/metrics","pathname":"/api/metrics","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":435,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/metrics","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","1039","Date","Thu, 24 Jul 2025 07:53:12 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/metrics","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"response":{"config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"metrics\":[{\"type\":\"system\",\"cpuUsage\":29.13787825479969,\"ramUsage\":10767.35546875,\"ramTotal\":12163.59765625,\"diskUsage\":455179.765625,\"diskTotal\":1441429.3046875,\"processCount\":298,\"loadAverage\":0,\"timestamp\":\"2025-07-24T07:53:08.718Z\"},{\"type\":\"project\",\"projectName\":\"test-api-project\",\"timestamp\":\"2025-07-24T07:53:08.718Z\",\"projectDiskUsage\":7.465029716491699}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:53:12.164Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"435","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/metrics","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"data":{"error":"\nInvalid `prisma.metric.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\metrics.js:47:42\n\n 44 // Submit metrics from agents\n 45 fastify.post('/', async (request, reply) => {\n 46 try {\n→ 47 const metric = await prisma.metric.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:53:12.166Z\"),\n + server: {\n + create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n + connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n + connect: ServerWhereUniqueInput\n + }\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `server` is missing."},"headers":{"connection":"keep-alive","content-length":"1039","content-security-policy":"default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","content-type":"application/json; charset=utf-8","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","date":"Thu, 24 Jul 2025 07:53:12 GMT","keep-alive":"timeout=72","origin-agent-cluster":"?1","referrer-policy":"no-referrer","strict-transport-security":"max-age=15552000; includeSubDomains","vary":"Origin","x-content-type-options":"nosniff","x-dns-prefetch-control":"off","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"0"},"request":{"_closed":true,"_contentLength":435,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/metrics HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 435\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/metrics","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"435","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/metrics","pathname":"/api/metrics","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":435,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/metrics","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","1039","Date","Thu, 24 Jul 2025 07:53:12 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/metrics","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"status":400,"statusText":"Bad Request"},"service":"logvista-agent","stack":"AxiosError: Request failed with status code 400\n at settle (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:2090:12)\n at IncomingMessage.handleStreamEnd (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3207:11)\n at IncomingMessage.emit (node:events:519:35)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:21:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.collectAndUploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:124:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:28:7)","status":400,"timestamp":"2025-07-24T07:53:12.169Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\logs.js:51:36\n\n 48 // Submit logs from agents\n 49 fastify.post('/', async (request, reply) => {\n 50 try {\n→ 51 const log = await prisma.log.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:53:13.724Z\"),\n + message: String\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:53:13.727Z"} {"code":"ERR_BAD_REQUEST","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T07:53:00.000Z\",\"level\":\"INFO\",\"message\":\"Starting scheduled API request\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"Starting scheduled API request\",\"requestId\":1753343580056,\"service\":\"test-api\",\"statusMessage\":\"Database connections healthy\",\"targetUrl\":\"https://httpbin.org/get\",\"timestamp\":\"2025-07-24 13:23:00\"}},{\"timestamp\":\"2025-07-24T07:53:00.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"50.03%\",\"disk\":\"11.66%\",\"level\":\"info\",\"memory\":\"7.07%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:23:00\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:53:00.000Z\",\"level\":\"INFO\",\"message\":\"Starting scheduled API request\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"Starting scheduled API request\",\"requestId\":1753343580056,\"service\":\"test-api\",\"statusMessage\":\"Database connections healthy\",\"targetUrl\":\"https://httpbin.org/get\",\"timestamp\":\"2025-07-24 13:23:00\"}},{\"timestamp\":\"2025-07-24T07:53:00.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"50.03%\",\"disk\":\"11.66%\",\"level\":\"info\",\"memory\":\"7.07%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:23:00\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:53:01.000Z\",\"level\":\"INFO\",\"message\":\"API request successful\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"dataSize\":294,\"level\":\"info\",\"message\":\"API request successful\",\"requestId\":1753343580056,\"responseTime\":\"1019ms\",\"service\":\"test-api\",\"status\":\"Database connections healthy\",\"statusCode\":200,\"timestamp\":\"2025-07-24 13:23:01\",\"url\":\"https://httpbin.org/get\"}},{\"timestamp\":\"2025-07-24T07:53:01.000Z\",\"level\":\"INFO\",\"message\":\"API request successful\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"dataSize\":294,\"level\":\"info\",\"message\":\"API request successful\",\"requestId\":1753343580056,\"responseTime\":\"1019ms\",\"service\":\"test-api\",\"status\":\"Database connections healthy\",\"statusCode\":200,\"timestamp\":\"2025-07-24 13:23:01\",\"url\":\"https://httpbin.org/get\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:53:13.723Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"2672","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"level":"error","message":"Error in log upload: Request failed with status code 400","name":"AxiosError","request":{"_closed":true,"_contentLength":2672,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 2672\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"2672","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":2672,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","719","Date","Thu, 24 Jul 2025 07:53:13 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/logs","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"response":{"config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T07:53:00.000Z\",\"level\":\"INFO\",\"message\":\"Starting scheduled API request\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"Starting scheduled API request\",\"requestId\":1753343580056,\"service\":\"test-api\",\"statusMessage\":\"Database connections healthy\",\"targetUrl\":\"https://httpbin.org/get\",\"timestamp\":\"2025-07-24 13:23:00\"}},{\"timestamp\":\"2025-07-24T07:53:00.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"50.03%\",\"disk\":\"11.66%\",\"level\":\"info\",\"memory\":\"7.07%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:23:00\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:53:00.000Z\",\"level\":\"INFO\",\"message\":\"Starting scheduled API request\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"Starting scheduled API request\",\"requestId\":1753343580056,\"service\":\"test-api\",\"statusMessage\":\"Database connections healthy\",\"targetUrl\":\"https://httpbin.org/get\",\"timestamp\":\"2025-07-24 13:23:00\"}},{\"timestamp\":\"2025-07-24T07:53:00.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"50.03%\",\"disk\":\"11.66%\",\"level\":\"info\",\"memory\":\"7.07%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:23:00\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:53:01.000Z\",\"level\":\"INFO\",\"message\":\"API request successful\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"dataSize\":294,\"level\":\"info\",\"message\":\"API request successful\",\"requestId\":1753343580056,\"responseTime\":\"1019ms\",\"service\":\"test-api\",\"status\":\"Database connections healthy\",\"statusCode\":200,\"timestamp\":\"2025-07-24 13:23:01\",\"url\":\"https://httpbin.org/get\"}},{\"timestamp\":\"2025-07-24T07:53:01.000Z\",\"level\":\"INFO\",\"message\":\"API request successful\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"dataSize\":294,\"level\":\"info\",\"message\":\"API request successful\",\"requestId\":1753343580056,\"responseTime\":\"1019ms\",\"service\":\"test-api\",\"status\":\"Database connections healthy\",\"statusCode\":200,\"timestamp\":\"2025-07-24 13:23:01\",\"url\":\"https://httpbin.org/get\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:53:13.723Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"2672","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"data":{"error":"\nInvalid `prisma.log.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\logs.js:51:36\n\n 48 // Submit logs from agents\n 49 fastify.post('/', async (request, reply) => {\n 50 try {\n→ 51 const log = await prisma.log.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:53:13.724Z\"),\n + message: String\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `message` is missing."},"headers":{"connection":"keep-alive","content-length":"719","content-security-policy":"default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","content-type":"application/json; charset=utf-8","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","date":"Thu, 24 Jul 2025 07:53:13 GMT","keep-alive":"timeout=72","origin-agent-cluster":"?1","referrer-policy":"no-referrer","strict-transport-security":"max-age=15552000; includeSubDomains","vary":"Origin","x-content-type-options":"nosniff","x-dns-prefetch-control":"off","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"0"},"request":{"_closed":true,"_contentLength":2672,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 2672\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"2672","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":2672,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","719","Date","Thu, 24 Jul 2025 07:53:13 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/logs","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"status":400,"statusText":"Bad Request"},"service":"logvista-agent","stack":"AxiosError: Request failed with status code 400\n at settle (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:2090:12)\n at IncomingMessage.handleStreamEnd (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3207:11)\n at IncomingMessage.emit (node:events:519:35)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:42:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:138:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:37:7)","status":400,"timestamp":"2025-07-24T07:53:13.728Z"} {"data":{"error":"\nInvalid `prisma.metric.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\metrics.js:47:42\n\n 44 // Submit metrics from agents\n 45 fastify.post('/', async (request, reply) => {\n 46 try {\n→ 47 const metric = await prisma.metric.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:53:39.493Z\"),\n + server: {\n + create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n + connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n + connect: ServerWhereUniqueInput\n + }\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `server` is missing."},"level":"error","message":"Upload failed for metrics - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:53:39.533Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:53:39.534Z"} {"data":{"error":"\nInvalid `prisma.metric.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\metrics.js:47:42\n\n 44 // Submit metrics from agents\n 45 fastify.post('/', async (request, reply) => {\n 46 try {\n→ 47 const metric = await prisma.metric.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:53:40.551Z\"),\n + server: {\n + create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n + connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n + connect: ServerWhereUniqueInput\n + }\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `server` is missing."},"level":"error","message":"Upload failed for metrics - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:53:40.553Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:53:40.554Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\logs.js:51:36\n\n 48 // Submit logs from agents\n 49 fastify.post('/', async (request, reply) => {\n 50 try {\n→ 51 const log = await prisma.log.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:53:40.910Z\"),\n + message: String\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:53:40.912Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:53:40.913Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\logs.js:51:36\n\n 48 // Submit logs from agents\n 49 fastify.post('/', async (request, reply) => {\n 50 try {\n→ 51 const log = await prisma.log.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:53:41.918Z\"),\n + message: String\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:53:41.921Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:53:41.922Z"} {"data":{"error":"\nInvalid `prisma.metric.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\metrics.js:47:42\n\n 44 // Submit metrics from agents\n 45 fastify.post('/', async (request, reply) => {\n 46 try {\n→ 47 const metric = await prisma.metric.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:53:42.564Z\"),\n + server: {\n + create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n + connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n + connect: ServerWhereUniqueInput\n + }\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `server` is missing."},"level":"error","message":"Upload failed for metrics - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:53:42.567Z"} {"code":"ERR_BAD_REQUEST","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"metrics\":[{\"type\":\"system\",\"cpuUsage\":11.335975410666636,\"ramUsage\":10845.72265625,\"ramTotal\":12163.59765625,\"diskUsage\":455180.4453125,\"diskTotal\":1441429.3046875,\"networkIn\":0.002653590429609067,\"networkOut\":0.0026155367632892646,\"processCount\":298,\"loadAverage\":0,\"timestamp\":\"2025-07-24T07:53:36.099Z\"},{\"type\":\"project\",\"projectName\":\"test-api-project\",\"timestamp\":\"2025-07-24T07:53:36.099Z\",\"projectDiskUsage\":7.4657793045043945}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:53:42.562Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"506","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/metrics","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"level":"error","message":"Error in metrics collection and upload: Request failed with status code 400","name":"AxiosError","request":{"_closed":true,"_contentLength":506,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/metrics HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 506\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/metrics","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"506","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/metrics","pathname":"/api/metrics","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":506,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/metrics","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","1039","Date","Thu, 24 Jul 2025 07:53:42 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/metrics","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"response":{"config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"metrics\":[{\"type\":\"system\",\"cpuUsage\":11.335975410666636,\"ramUsage\":10845.72265625,\"ramTotal\":12163.59765625,\"diskUsage\":455180.4453125,\"diskTotal\":1441429.3046875,\"networkIn\":0.002653590429609067,\"networkOut\":0.0026155367632892646,\"processCount\":298,\"loadAverage\":0,\"timestamp\":\"2025-07-24T07:53:36.099Z\"},{\"type\":\"project\",\"projectName\":\"test-api-project\",\"timestamp\":\"2025-07-24T07:53:36.099Z\",\"projectDiskUsage\":7.4657793045043945}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:53:42.562Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"506","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/metrics","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"data":{"error":"\nInvalid `prisma.metric.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\metrics.js:47:42\n\n 44 // Submit metrics from agents\n 45 fastify.post('/', async (request, reply) => {\n 46 try {\n→ 47 const metric = await prisma.metric.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:53:42.564Z\"),\n + server: {\n + create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n + connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n + connect: ServerWhereUniqueInput\n + }\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `server` is missing."},"headers":{"connection":"keep-alive","content-length":"1039","content-security-policy":"default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","content-type":"application/json; charset=utf-8","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","date":"Thu, 24 Jul 2025 07:53:42 GMT","keep-alive":"timeout=72","origin-agent-cluster":"?1","referrer-policy":"no-referrer","strict-transport-security":"max-age=15552000; includeSubDomains","vary":"Origin","x-content-type-options":"nosniff","x-dns-prefetch-control":"off","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"0"},"request":{"_closed":true,"_contentLength":506,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/metrics HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 506\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/metrics","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"506","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/metrics","pathname":"/api/metrics","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":506,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/metrics","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","1039","Date","Thu, 24 Jul 2025 07:53:42 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/metrics","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"status":400,"statusText":"Bad Request"},"service":"logvista-agent","stack":"AxiosError: Request failed with status code 400\n at settle (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:2090:12)\n at IncomingMessage.handleStreamEnd (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3207:11)\n at IncomingMessage.emit (node:events:519:35)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:21:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.collectAndUploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:124:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:28:7)","status":400,"timestamp":"2025-07-24T07:53:42.568Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\logs.js:51:36\n\n 48 // Submit logs from agents\n 49 fastify.post('/', async (request, reply) => {\n 50 try {\n→ 51 const log = await prisma.log.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:53:43.932Z\"),\n + message: String\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:53:43.938Z"} {"code":"ERR_BAD_REQUEST","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T07:53:30.000Z\",\"level\":\"ERROR\",\"message\":\"Critical disk usage\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\error.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"disk\":\"93.33%\",\"level\":\"error\",\"message\":\"Critical disk usage\",\"service\":\"test-api\",\"threshold\":\"90%\",\"timestamp\":\"2025-07-24 13:23:30\"}},{\"timestamp\":\"2025-07-24T07:53:30.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"46.21%\",\"disk\":\"93.33%\",\"level\":\"info\",\"memory\":\"70.46%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:23:30\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:53:30.000Z\",\"level\":\"ERROR\",\"message\":\"Critical disk usage\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"disk\":\"93.33%\",\"level\":\"error\",\"message\":\"Critical disk usage\",\"service\":\"test-api\",\"threshold\":\"90%\",\"timestamp\":\"2025-07-24 13:23:30\"}},{\"timestamp\":\"2025-07-24T07:53:30.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"46.21%\",\"disk\":\"93.33%\",\"level\":\"info\",\"memory\":\"70.46%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:23:30\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:53:30.000Z\",\"level\":\"ERROR\",\"message\":\"Critical disk usage\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"disk\":\"93.33%\",\"level\":\"error\",\"message\":\"Critical disk usage\",\"service\":\"test-api\",\"threshold\":\"90%\",\"timestamp\":\"2025-07-24 13:23:30\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:53:43.929Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"1889","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"level":"error","message":"Error in log upload: Request failed with status code 400","name":"AxiosError","request":{"_closed":true,"_contentLength":1889,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 1889\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"1889","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":1889,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","719","Date","Thu, 24 Jul 2025 07:53:43 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/logs","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"response":{"config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T07:53:30.000Z\",\"level\":\"ERROR\",\"message\":\"Critical disk usage\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\error.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"disk\":\"93.33%\",\"level\":\"error\",\"message\":\"Critical disk usage\",\"service\":\"test-api\",\"threshold\":\"90%\",\"timestamp\":\"2025-07-24 13:23:30\"}},{\"timestamp\":\"2025-07-24T07:53:30.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"46.21%\",\"disk\":\"93.33%\",\"level\":\"info\",\"memory\":\"70.46%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:23:30\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:53:30.000Z\",\"level\":\"ERROR\",\"message\":\"Critical disk usage\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"disk\":\"93.33%\",\"level\":\"error\",\"message\":\"Critical disk usage\",\"service\":\"test-api\",\"threshold\":\"90%\",\"timestamp\":\"2025-07-24 13:23:30\"}},{\"timestamp\":\"2025-07-24T07:53:30.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"46.21%\",\"disk\":\"93.33%\",\"level\":\"info\",\"memory\":\"70.46%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:23:30\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:53:30.000Z\",\"level\":\"ERROR\",\"message\":\"Critical disk usage\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"disk\":\"93.33%\",\"level\":\"error\",\"message\":\"Critical disk usage\",\"service\":\"test-api\",\"threshold\":\"90%\",\"timestamp\":\"2025-07-24 13:23:30\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:53:43.929Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"1889","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"data":{"error":"\nInvalid `prisma.log.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\logs.js:51:36\n\n 48 // Submit logs from agents\n 49 fastify.post('/', async (request, reply) => {\n 50 try {\n→ 51 const log = await prisma.log.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:53:43.932Z\"),\n + message: String\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `message` is missing."},"headers":{"connection":"keep-alive","content-length":"719","content-security-policy":"default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","content-type":"application/json; charset=utf-8","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","date":"Thu, 24 Jul 2025 07:53:43 GMT","keep-alive":"timeout=72","origin-agent-cluster":"?1","referrer-policy":"no-referrer","strict-transport-security":"max-age=15552000; includeSubDomains","vary":"Origin","x-content-type-options":"nosniff","x-dns-prefetch-control":"off","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"0"},"request":{"_closed":true,"_contentLength":1889,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 1889\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"1889","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":1889,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","719","Date","Thu, 24 Jul 2025 07:53:43 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/logs","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"status":400,"statusText":"Bad Request"},"service":"logvista-agent","stack":"AxiosError: Request failed with status code 400\n at settle (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:2090:12)\n at IncomingMessage.handleStreamEnd (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3207:11)\n at IncomingMessage.emit (node:events:519:35)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:42:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:138:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:37:7)","status":400,"timestamp":"2025-07-24T07:53:43.938Z"} {"level":"info","message":"Initializing LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:54:54.719Z"} {"level":"info","message":"Configuration loaded successfully","service":"logvista-agent","timestamp":"2025-07-24T07:54:54.729Z"} {"level":"info","message":"Connection test successful:","service":"LogVista Central System","status":"ok","timestamp":"2025-07-24T07:54:54.783Z","version":"1.0.0"} {"level":"info","message":"LogVista Agent initialized successfully","service":"logvista-agent","timestamp":"2025-07-24T07:54:54.791Z"} {"level":"info","message":"Starting LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:54:54.791Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\app.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:54:54.795Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\error.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:54:54.797Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\access.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:54:54.798Z"} {"level":"info","message":"Started watching project logs in: E:\\Freelance\\LogVistaV2\\test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:54:54.799Z"} {"level":"info","message":"Starting LogVista Agent Scheduler","service":"logvista-agent","timestamp":"2025-07-24T07:54:54.800Z"} {"level":"info","message":"Started metrics task","service":"logvista-agent","timestamp":"2025-07-24T07:54:54.803Z"} {"level":"info","message":"Started logs task","service":"logvista-agent","timestamp":"2025-07-24T07:54:54.804Z"} {"level":"info","message":"Started retry task","service":"logvista-agent","timestamp":"2025-07-24T07:54:54.804Z"} {"level":"info","message":"Started serverInfo task","service":"logvista-agent","timestamp":"2025-07-24T07:54:54.804Z"} {"level":"info","message":"All scheduled tasks started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:54:54.805Z"} {"level":"info","message":"LogVista Agent started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:54:54.805Z"} {"config":{"batchSize":100,"centralUrl":"http://localhost:3001","collectionInterval":30},"isRunning":true,"level":"info","message":"Agent Status:","projects":[{"logPaths":3,"name":"test-api-project","path":"E:\\Freelance\\LogVistaV2\\test-api-project"}],"scheduler":{"activeTasks":["metrics","logs","retry","serverInfo"],"isRunning":true,"taskCount":4},"service":"logvista-agent","timestamp":"2025-07-24T07:54:54.805Z"} {"data":{"error":"Not Found","message":"Route POST:/api/servers/register not found","statusCode":404},"level":"error","message":"Upload failed for server-info - Server Error:","service":"logvista-agent","status":404,"statusText":"Not Found","timestamp":"2025-07-24T07:55:02.665Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:55:02.666Z"} {"data":{"error":"Not Found","message":"Route POST:/api/servers/register not found","statusCode":404},"level":"error","message":"Upload failed for server-info - Server Error:","service":"logvista-agent","status":404,"statusText":"Not Found","timestamp":"2025-07-24T07:55:03.671Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:55:03.672Z"} {"data":{"error":"Not Found","message":"Route POST:/api/servers/register not found","statusCode":404},"level":"error","message":"Upload failed for server-info - Server Error:","service":"logvista-agent","status":404,"statusText":"Not Found","timestamp":"2025-07-24T07:55:05.684Z"} {"code":"ERR_BAD_REQUEST","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"hostname\":\"DESKTOP-OQNP5BM\",\"platform\":\"win32\",\"architecture\":\"x64\",\"os\":{\"platform\":\"Windows\",\"distro\":\"Microsoft Windows 11 Pro\",\"release\":\"10.0.26100\",\"kernel\":\"10.0.26100\",\"arch\":\"x64\"},\"cpu\":{\"manufacturer\":\"Intel\",\"brand\":\"Core™ i5-8250U\",\"cores\":8,\"physicalCores\":4,\"speed\":1.6},\"system\":{\"manufacturer\":\"Acer\",\"model\":\"Aspire A515-51G\",\"version\":\"V2.02\",\"serial\":\"NXGWJSI00375106D9E3400\"},\"memory\":{\"total\":12754456576,\"free\":1495990272},\"uptime\":592358.406,\"loadavg\":[0,0,0],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:55:05.680Z\"},\"projects\":[{\"name\":\"test-api-project\",\"path\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\",\"logPaths\":[\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\error.log\",\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\"]}]}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"850","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/servers/register","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"level":"error","message":"Error updating server information: Request failed with status code 404","name":"AxiosError","request":{"_closed":true,"_contentLength":850,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/servers/register HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 850\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/servers/register","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"850","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/servers/register","pathname":"/api/servers/register","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":850,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/servers/register","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","93","Date","Thu, 24 Jul 2025 07:55:05 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/servers/register","socket":null,"statusCode":404,"statusMessage":"Not Found","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"response":{"config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"hostname\":\"DESKTOP-OQNP5BM\",\"platform\":\"win32\",\"architecture\":\"x64\",\"os\":{\"platform\":\"Windows\",\"distro\":\"Microsoft Windows 11 Pro\",\"release\":\"10.0.26100\",\"kernel\":\"10.0.26100\",\"arch\":\"x64\"},\"cpu\":{\"manufacturer\":\"Intel\",\"brand\":\"Core™ i5-8250U\",\"cores\":8,\"physicalCores\":4,\"speed\":1.6},\"system\":{\"manufacturer\":\"Acer\",\"model\":\"Aspire A515-51G\",\"version\":\"V2.02\",\"serial\":\"NXGWJSI00375106D9E3400\"},\"memory\":{\"total\":12754456576,\"free\":1495990272},\"uptime\":592358.406,\"loadavg\":[0,0,0],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:55:05.680Z\"},\"projects\":[{\"name\":\"test-api-project\",\"path\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\",\"logPaths\":[\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\error.log\",\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\"]}]}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"850","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/servers/register","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"data":{"error":"Not Found","message":"Route POST:/api/servers/register not found","statusCode":404},"headers":{"connection":"keep-alive","content-length":"93","content-security-policy":"default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","content-type":"application/json; charset=utf-8","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","date":"Thu, 24 Jul 2025 07:55:05 GMT","keep-alive":"timeout=72","origin-agent-cluster":"?1","referrer-policy":"no-referrer","strict-transport-security":"max-age=15552000; includeSubDomains","vary":"Origin","x-content-type-options":"nosniff","x-dns-prefetch-control":"off","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"0"},"request":{"_closed":true,"_contentLength":850,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/servers/register HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 850\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/servers/register","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"850","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/servers/register","pathname":"/api/servers/register","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":850,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/servers/register","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","93","Date","Thu, 24 Jul 2025 07:55:05 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/servers/register","socket":null,"statusCode":404,"statusMessage":"Not Found","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"status":404,"statusText":"Not Found"},"service":"logvista-agent","stack":"AxiosError: Request failed with status code 404\n at settle (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:2090:12)\n at IncomingMessage.handleStreamEnd (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3207:11)\n at IncomingMessage.emit (node:events:519:35)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadServerInfo (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:61:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.updateServerInfo (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:211:7)","status":404,"timestamp":"2025-07-24T07:55:05.684Z"} {"data":{"error":"\nInvalid `prisma.metric.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\metrics.js:47:42\n\n 44 // Submit metrics from agents\n 45 fastify.post('/', async (request, reply) => {\n 46 try {\n→ 47 const metric = await prisma.metric.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:55:09.545Z\"),\n + server: {\n + create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n + connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n + connect: ServerWhereUniqueInput\n + }\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `server` is missing."},"level":"error","message":"Upload failed for metrics - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:55:09.746Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:55:09.746Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\logs.js:51:36\n\n 48 // Submit logs from agents\n 49 fastify.post('/', async (request, reply) => {\n 50 try {\n→ 51 const log = await prisma.log.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:55:10.150Z\"),\n + message: String\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:55:10.154Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:55:10.155Z"} {"data":{"error":"\nInvalid `prisma.metric.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\metrics.js:47:42\n\n 44 // Submit metrics from agents\n 45 fastify.post('/', async (request, reply) => {\n 46 try {\n→ 47 const metric = await prisma.metric.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:55:10.756Z\"),\n + server: {\n + create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n + connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n + connect: ServerWhereUniqueInput\n + }\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `server` is missing."},"level":"error","message":"Upload failed for metrics - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:55:10.760Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:55:10.761Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\logs.js:51:36\n\n 48 // Submit logs from agents\n 49 fastify.post('/', async (request, reply) => {\n 50 try {\n→ 51 const log = await prisma.log.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:55:11.163Z\"),\n + message: String\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:55:11.167Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:55:11.168Z"} {"data":{"error":"\nInvalid `prisma.metric.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\metrics.js:47:42\n\n 44 // Submit metrics from agents\n 45 fastify.post('/', async (request, reply) => {\n 46 try {\n→ 47 const metric = await prisma.metric.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:55:12.763Z\"),\n + server: {\n + create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n + connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n + connect: ServerWhereUniqueInput\n + }\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `server` is missing."},"level":"error","message":"Upload failed for metrics - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:55:12.767Z"} {"code":"ERR_BAD_REQUEST","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"metrics\":[{\"type\":\"system\",\"cpuUsage\":29.126077567332054,\"ramUsage\":10891.03125,\"ramTotal\":12163.59765625,\"diskUsage\":455180.98828125,\"diskTotal\":1441429.3046875,\"processCount\":293,\"loadAverage\":0,\"timestamp\":\"2025-07-24T07:55:09.257Z\"},{\"type\":\"project\",\"projectName\":\"test-api-project\",\"timestamp\":\"2025-07-24T07:55:09.258Z\",\"projectDiskUsage\":7.46608829498291}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:55:12.761Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"434","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/metrics","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"level":"error","message":"Error in metrics collection and upload: Request failed with status code 400","name":"AxiosError","request":{"_closed":true,"_contentLength":434,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/metrics HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 434\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/metrics","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"434","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/metrics","pathname":"/api/metrics","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":434,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/metrics","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","1039","Date","Thu, 24 Jul 2025 07:55:12 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/metrics","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"response":{"config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"metrics\":[{\"type\":\"system\",\"cpuUsage\":29.126077567332054,\"ramUsage\":10891.03125,\"ramTotal\":12163.59765625,\"diskUsage\":455180.98828125,\"diskTotal\":1441429.3046875,\"processCount\":293,\"loadAverage\":0,\"timestamp\":\"2025-07-24T07:55:09.257Z\"},{\"type\":\"project\",\"projectName\":\"test-api-project\",\"timestamp\":\"2025-07-24T07:55:09.258Z\",\"projectDiskUsage\":7.46608829498291}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:55:12.761Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"434","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/metrics","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"data":{"error":"\nInvalid `prisma.metric.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\metrics.js:47:42\n\n 44 // Submit metrics from agents\n 45 fastify.post('/', async (request, reply) => {\n 46 try {\n→ 47 const metric = await prisma.metric.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:55:12.763Z\"),\n + server: {\n + create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n + connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n + connect: ServerWhereUniqueInput\n + }\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `server` is missing."},"headers":{"connection":"keep-alive","content-length":"1039","content-security-policy":"default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","content-type":"application/json; charset=utf-8","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","date":"Thu, 24 Jul 2025 07:55:12 GMT","keep-alive":"timeout=72","origin-agent-cluster":"?1","referrer-policy":"no-referrer","strict-transport-security":"max-age=15552000; includeSubDomains","vary":"Origin","x-content-type-options":"nosniff","x-dns-prefetch-control":"off","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"0"},"request":{"_closed":true,"_contentLength":434,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/metrics HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 434\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/metrics","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"434","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/metrics","pathname":"/api/metrics","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":434,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/metrics","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","1039","Date","Thu, 24 Jul 2025 07:55:12 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/metrics","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"status":400,"statusText":"Bad Request"},"service":"logvista-agent","stack":"AxiosError: Request failed with status code 400\n at settle (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:2090:12)\n at IncomingMessage.handleStreamEnd (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3207:11)\n at IncomingMessage.emit (node:events:519:35)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:21:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.collectAndUploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:124:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:28:7)","status":400,"timestamp":"2025-07-24T07:55:12.768Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\logs.js:51:36\n\n 48 // Submit logs from agents\n 49 fastify.post('/', async (request, reply) => {\n 50 try {\n→ 51 const log = await prisma.log.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:55:13.184Z\"),\n + message: String\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:55:13.189Z"} {"code":"ERR_BAD_REQUEST","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T07:55:07.000Z\",\"level\":\"INFO\",\"message\":\"Test API server started on port 4001\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"environment\":\"development\",\"level\":\"info\",\"message\":\"Test API server started on port 4001\",\"port\":4001,\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:25:07\"}},{\"timestamp\":\"2025-07-24T07:55:07.000Z\",\"level\":\"INFO\",\"message\":\"Test API server started on port 4001\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"environment\":\"development\",\"level\":\"info\",\"message\":\"Test API server started on port 4001\",\"port\":4001,\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:25:07\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:55:13.180Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"840","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"level":"error","message":"Error in log upload: Request failed with status code 400","name":"AxiosError","request":{"_closed":true,"_contentLength":840,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 840\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"840","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":840,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","719","Date","Thu, 24 Jul 2025 07:55:13 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/logs","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"response":{"config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T07:55:07.000Z\",\"level\":\"INFO\",\"message\":\"Test API server started on port 4001\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"environment\":\"development\",\"level\":\"info\",\"message\":\"Test API server started on port 4001\",\"port\":4001,\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:25:07\"}},{\"timestamp\":\"2025-07-24T07:55:07.000Z\",\"level\":\"INFO\",\"message\":\"Test API server started on port 4001\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"environment\":\"development\",\"level\":\"info\",\"message\":\"Test API server started on port 4001\",\"port\":4001,\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:25:07\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:55:13.180Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"840","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"data":{"error":"\nInvalid `prisma.log.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\logs.js:51:36\n\n 48 // Submit logs from agents\n 49 fastify.post('/', async (request, reply) => {\n 50 try {\n→ 51 const log = await prisma.log.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:55:13.184Z\"),\n + message: String\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `message` is missing."},"headers":{"connection":"keep-alive","content-length":"719","content-security-policy":"default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","content-type":"application/json; charset=utf-8","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","date":"Thu, 24 Jul 2025 07:55:13 GMT","keep-alive":"timeout=72","origin-agent-cluster":"?1","referrer-policy":"no-referrer","strict-transport-security":"max-age=15552000; includeSubDomains","vary":"Origin","x-content-type-options":"nosniff","x-dns-prefetch-control":"off","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"0"},"request":{"_closed":true,"_contentLength":840,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 840\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"840","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":840,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","719","Date","Thu, 24 Jul 2025 07:55:13 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/logs","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"status":400,"statusText":"Bad Request"},"service":"logvista-agent","stack":"AxiosError: Request failed with status code 400\n at settle (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:2090:12)\n at IncomingMessage.handleStreamEnd (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3207:11)\n at IncomingMessage.emit (node:events:519:35)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:42:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:138:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:37:7)","status":400,"timestamp":"2025-07-24T07:55:13.189Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\logs.js:51:36\n\n 48 // Submit logs from agents\n 49 fastify.post('/', async (request, reply) => {\n 50 try {\n→ 51 const log = await prisma.log.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:55:20.236Z\"),\n + message: String\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:55:20.240Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:55:20.240Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\logs.js:51:36\n\n 48 // Submit logs from agents\n 49 fastify.post('/', async (request, reply) => {\n 50 try {\n→ 51 const log = await prisma.log.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:55:21.249Z\"),\n + message: String\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:55:21.258Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:55:21.260Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\logs.js:51:36\n\n 48 // Submit logs from agents\n 49 fastify.post('/', async (request, reply) => {\n 50 try {\n→ 51 const log = await prisma.log.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:55:23.278Z\"),\n + message: String\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:55:23.282Z"} {"code":"ERR_BAD_REQUEST","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T07:55:12.000Z\",\"level\":\"INFO\",\"message\":\"Starting scheduled API request\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"Starting scheduled API request\",\"requestId\":1753343712729,\"service\":\"test-api\",\"statusMessage\":\"User activity detected\",\"targetUrl\":\"https://jsonplaceholder.typicode.com/users/1\",\"timestamp\":\"2025-07-24 13:25:12\"}},{\"timestamp\":\"2025-07-24T07:55:12.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"41.57%\",\"disk\":\"29.53%\",\"level\":\"info\",\"memory\":\"75.85%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:25:12\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:55:12.000Z\",\"level\":\"INFO\",\"message\":\"Starting scheduled API request\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"Starting scheduled API request\",\"requestId\":1753343712729,\"service\":\"test-api\",\"statusMessage\":\"User activity detected\",\"targetUrl\":\"https://jsonplaceholder.typicode.com/users/1\",\"timestamp\":\"2025-07-24 13:25:12\"}},{\"timestamp\":\"2025-07-24T07:55:12.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"41.57%\",\"disk\":\"29.53%\",\"level\":\"info\",\"memory\":\"75.85%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:25:12\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:55:13.000Z\",\"level\":\"INFO\",\"message\":\"API request successful\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"dataSize\":401,\"level\":\"info\",\"message\":\"API request successful\",\"requestId\":1753343712729,\"responseTime\":\"665ms\",\"service\":\"test-api\",\"status\":\"User activity detected\",\"statusCode\":200,\"timestamp\":\"2025-07-24 13:25:13\",\"url\":\"https://jsonplaceholder.typicode.com/users/1\"}},{\"timestamp\":\"2025-07-24T07:55:13.000Z\",\"level\":\"INFO\",\"message\":\"API request successful\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"dataSize\":401,\"level\":\"info\",\"message\":\"API request successful\",\"requestId\":1753343712729,\"responseTime\":\"665ms\",\"service\":\"test-api\",\"status\":\"User activity detected\",\"statusCode\":200,\"timestamp\":\"2025-07-24 13:25:13\",\"url\":\"https://jsonplaceholder.typicode.com/users/1\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:55:23.275Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"2732","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"level":"error","message":"Error in log upload: Request failed with status code 400","name":"AxiosError","request":{"_closed":true,"_contentLength":2732,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 2732\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"2732","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":2732,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","719","Date","Thu, 24 Jul 2025 07:55:23 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/logs","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"response":{"config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T07:55:12.000Z\",\"level\":\"INFO\",\"message\":\"Starting scheduled API request\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"Starting scheduled API request\",\"requestId\":1753343712729,\"service\":\"test-api\",\"statusMessage\":\"User activity detected\",\"targetUrl\":\"https://jsonplaceholder.typicode.com/users/1\",\"timestamp\":\"2025-07-24 13:25:12\"}},{\"timestamp\":\"2025-07-24T07:55:12.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"41.57%\",\"disk\":\"29.53%\",\"level\":\"info\",\"memory\":\"75.85%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:25:12\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:55:12.000Z\",\"level\":\"INFO\",\"message\":\"Starting scheduled API request\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"Starting scheduled API request\",\"requestId\":1753343712729,\"service\":\"test-api\",\"statusMessage\":\"User activity detected\",\"targetUrl\":\"https://jsonplaceholder.typicode.com/users/1\",\"timestamp\":\"2025-07-24 13:25:12\"}},{\"timestamp\":\"2025-07-24T07:55:12.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"41.57%\",\"disk\":\"29.53%\",\"level\":\"info\",\"memory\":\"75.85%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:25:12\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:55:13.000Z\",\"level\":\"INFO\",\"message\":\"API request successful\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"dataSize\":401,\"level\":\"info\",\"message\":\"API request successful\",\"requestId\":1753343712729,\"responseTime\":\"665ms\",\"service\":\"test-api\",\"status\":\"User activity detected\",\"statusCode\":200,\"timestamp\":\"2025-07-24 13:25:13\",\"url\":\"https://jsonplaceholder.typicode.com/users/1\"}},{\"timestamp\":\"2025-07-24T07:55:13.000Z\",\"level\":\"INFO\",\"message\":\"API request successful\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"dataSize\":401,\"level\":\"info\",\"message\":\"API request successful\",\"requestId\":1753343712729,\"responseTime\":\"665ms\",\"service\":\"test-api\",\"status\":\"User activity detected\",\"statusCode\":200,\"timestamp\":\"2025-07-24 13:25:13\",\"url\":\"https://jsonplaceholder.typicode.com/users/1\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:55:23.275Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"2732","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"data":{"error":"\nInvalid `prisma.log.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\logs.js:51:36\n\n 48 // Submit logs from agents\n 49 fastify.post('/', async (request, reply) => {\n 50 try {\n→ 51 const log = await prisma.log.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:55:23.278Z\"),\n + message: String\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `message` is missing."},"headers":{"connection":"keep-alive","content-length":"719","content-security-policy":"default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","content-type":"application/json; charset=utf-8","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","date":"Thu, 24 Jul 2025 07:55:23 GMT","keep-alive":"timeout=72","origin-agent-cluster":"?1","referrer-policy":"no-referrer","strict-transport-security":"max-age=15552000; includeSubDomains","vary":"Origin","x-content-type-options":"nosniff","x-dns-prefetch-control":"off","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"0"},"request":{"_closed":true,"_contentLength":2732,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 2732\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"2732","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":2732,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","719","Date","Thu, 24 Jul 2025 07:55:23 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/logs","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"status":400,"statusText":"Bad Request"},"service":"logvista-agent","stack":"AxiosError: Request failed with status code 400\n at settle (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:2090:12)\n at IncomingMessage.handleStreamEnd (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3207:11)\n at IncomingMessage.emit (node:events:519:35)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:42:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:138:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:37:7)","status":400,"timestamp":"2025-07-24T07:55:23.283Z"} {"data":{"error":"\nInvalid `prisma.metric.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\metrics.js:47:42\n\n 44 // Submit metrics from agents\n 45 fastify.post('/', async (request, reply) => {\n 46 try {\n→ 47 const metric = await prisma.metric.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:55:39.307Z\"),\n + server: {\n + create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n + connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n + connect: ServerWhereUniqueInput\n + }\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `server` is missing."},"level":"error","message":"Upload failed for metrics - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:55:39.349Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:55:39.350Z"} {"data":{"error":"\nInvalid `prisma.metric.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\metrics.js:47:42\n\n 44 // Submit metrics from agents\n 45 fastify.post('/', async (request, reply) => {\n 46 try {\n→ 47 const metric = await prisma.metric.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:55:40.363Z\"),\n + server: {\n + create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n + connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n + connect: ServerWhereUniqueInput\n + }\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `server` is missing."},"level":"error","message":"Upload failed for metrics - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:55:40.365Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:55:40.366Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\logs.js:51:36\n\n 48 // Submit logs from agents\n 49 fastify.post('/', async (request, reply) => {\n 50 try {\n→ 51 const log = await prisma.log.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:55:40.394Z\"),\n + message: String\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:55:40.396Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:55:40.397Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\logs.js:51:36\n\n 48 // Submit logs from agents\n 49 fastify.post('/', async (request, reply) => {\n 50 try {\n→ 51 const log = await prisma.log.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:55:41.411Z\"),\n + message: String\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:55:41.416Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:55:41.417Z"} {"data":{"error":"\nInvalid `prisma.metric.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\metrics.js:47:42\n\n 44 // Submit metrics from agents\n 45 fastify.post('/', async (request, reply) => {\n 46 try {\n→ 47 const metric = await prisma.metric.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:55:42.375Z\"),\n + server: {\n + create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n + connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n + connect: ServerWhereUniqueInput\n + }\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `server` is missing."},"level":"error","message":"Upload failed for metrics - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:55:42.377Z"} {"code":"ERR_BAD_REQUEST","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"metrics\":[{\"type\":\"system\",\"cpuUsage\":16.93113861093019,\"ramUsage\":10881.19921875,\"ramTotal\":12163.59765625,\"diskUsage\":455181.7890625,\"diskTotal\":1441429.3046875,\"networkIn\":0.0037512321190729214,\"networkOut\":0.015974407205237646,\"processCount\":298,\"loadAverage\":0,\"timestamp\":\"2025-07-24T07:55:35.678Z\"},{\"type\":\"project\",\"projectName\":\"test-api-project\",\"timestamp\":\"2025-07-24T07:55:35.678Z\",\"projectDiskUsage\":7.467774391174316}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:55:42.373Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"504","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/metrics","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"level":"error","message":"Error in metrics collection and upload: Request failed with status code 400","name":"AxiosError","request":{"_closed":true,"_contentLength":504,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/metrics HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 504\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/metrics","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"504","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/metrics","pathname":"/api/metrics","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":504,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/metrics","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","1039","Date","Thu, 24 Jul 2025 07:55:42 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/metrics","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"response":{"config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"metrics\":[{\"type\":\"system\",\"cpuUsage\":16.93113861093019,\"ramUsage\":10881.19921875,\"ramTotal\":12163.59765625,\"diskUsage\":455181.7890625,\"diskTotal\":1441429.3046875,\"networkIn\":0.0037512321190729214,\"networkOut\":0.015974407205237646,\"processCount\":298,\"loadAverage\":0,\"timestamp\":\"2025-07-24T07:55:35.678Z\"},{\"type\":\"project\",\"projectName\":\"test-api-project\",\"timestamp\":\"2025-07-24T07:55:35.678Z\",\"projectDiskUsage\":7.467774391174316}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:55:42.373Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"504","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/metrics","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"data":{"error":"\nInvalid `prisma.metric.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\metrics.js:47:42\n\n 44 // Submit metrics from agents\n 45 fastify.post('/', async (request, reply) => {\n 46 try {\n→ 47 const metric = await prisma.metric.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:55:42.375Z\"),\n + server: {\n + create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n + connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n + connect: ServerWhereUniqueInput\n + }\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `server` is missing."},"headers":{"connection":"keep-alive","content-length":"1039","content-security-policy":"default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","content-type":"application/json; charset=utf-8","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","date":"Thu, 24 Jul 2025 07:55:42 GMT","keep-alive":"timeout=72","origin-agent-cluster":"?1","referrer-policy":"no-referrer","strict-transport-security":"max-age=15552000; includeSubDomains","vary":"Origin","x-content-type-options":"nosniff","x-dns-prefetch-control":"off","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"0"},"request":{"_closed":true,"_contentLength":504,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/metrics HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 504\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/metrics","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"504","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/metrics","pathname":"/api/metrics","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":504,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/metrics","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","1039","Date","Thu, 24 Jul 2025 07:55:42 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/metrics","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"status":400,"statusText":"Bad Request"},"service":"logvista-agent","stack":"AxiosError: Request failed with status code 400\n at settle (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:2090:12)\n at IncomingMessage.handleStreamEnd (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3207:11)\n at IncomingMessage.emit (node:events:519:35)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:21:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.collectAndUploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:124:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:28:7)","status":400,"timestamp":"2025-07-24T07:55:42.378Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\logs.js:51:36\n\n 48 // Submit logs from agents\n 49 fastify.post('/', async (request, reply) => {\n 50 try {\n→ 51 const log = await prisma.log.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:55:43.426Z\"),\n + message: String\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:55:43.429Z"} {"code":"ERR_BAD_REQUEST","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T07:55:30.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"39.68%\",\"disk\":\"58.56%\",\"level\":\"info\",\"memory\":\"75.22%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:25:30\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:55:30.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"39.68%\",\"disk\":\"58.56%\",\"level\":\"info\",\"memory\":\"75.22%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:25:30\",\"type\":\"system_metrics\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:55:43.424Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"858","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"level":"error","message":"Error in log upload: Request failed with status code 400","name":"AxiosError","request":{"_closed":true,"_contentLength":858,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 858\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"858","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":858,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","719","Date","Thu, 24 Jul 2025 07:55:43 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/logs","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"response":{"config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T07:55:30.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"39.68%\",\"disk\":\"58.56%\",\"level\":\"info\",\"memory\":\"75.22%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:25:30\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:55:30.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"39.68%\",\"disk\":\"58.56%\",\"level\":\"info\",\"memory\":\"75.22%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:25:30\",\"type\":\"system_metrics\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:55:43.424Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"858","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"data":{"error":"\nInvalid `prisma.log.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\logs.js:51:36\n\n 48 // Submit logs from agents\n 49 fastify.post('/', async (request, reply) => {\n 50 try {\n→ 51 const log = await prisma.log.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:55:43.426Z\"),\n + message: String\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `message` is missing."},"headers":{"connection":"keep-alive","content-length":"719","content-security-policy":"default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","content-type":"application/json; charset=utf-8","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","date":"Thu, 24 Jul 2025 07:55:43 GMT","keep-alive":"timeout=72","origin-agent-cluster":"?1","referrer-policy":"no-referrer","strict-transport-security":"max-age=15552000; includeSubDomains","vary":"Origin","x-content-type-options":"nosniff","x-dns-prefetch-control":"off","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"0"},"request":{"_closed":true,"_contentLength":858,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 858\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"858","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":858,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","719","Date","Thu, 24 Jul 2025 07:55:43 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/logs","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"status":400,"statusText":"Bad Request"},"service":"logvista-agent","stack":"AxiosError: Request failed with status code 400\n at settle (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:2090:12)\n at IncomingMessage.handleStreamEnd (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3207:11)\n at IncomingMessage.emit (node:events:519:35)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:42:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:138:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:37:7)","status":400,"timestamp":"2025-07-24T07:55:43.429Z"} {"data":{"error":"\nInvalid `prisma.metric.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\metrics.js:47:42\n\n 44 // Submit metrics from agents\n 45 fastify.post('/', async (request, reply) => {\n 46 try {\n→ 47 const metric = await prisma.metric.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:56:09.311Z\"),\n + server: {\n + create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n + connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n + connect: ServerWhereUniqueInput\n + }\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `server` is missing."},"level":"error","message":"Upload failed for metrics - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:56:09.354Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:56:09.356Z"} {"data":{"error":"\nInvalid `prisma.metric.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\metrics.js:47:42\n\n 44 // Submit metrics from agents\n 45 fastify.post('/', async (request, reply) => {\n 46 try {\n→ 47 const metric = await prisma.metric.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:56:10.361Z\"),\n + server: {\n + create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n + connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n + connect: ServerWhereUniqueInput\n + }\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `server` is missing."},"level":"error","message":"Upload failed for metrics - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:56:10.365Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:56:10.366Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\logs.js:51:36\n\n 48 // Submit logs from agents\n 49 fastify.post('/', async (request, reply) => {\n 50 try {\n→ 51 const log = await prisma.log.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:56:10.641Z\"),\n + message: String\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:56:10.643Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:56:10.644Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\logs.js:51:36\n\n 48 // Submit logs from agents\n 49 fastify.post('/', async (request, reply) => {\n 50 try {\n→ 51 const log = await prisma.log.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:56:11.662Z\"),\n + message: String\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:56:11.670Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:56:11.672Z"} {"data":{"error":"\nInvalid `prisma.metric.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\metrics.js:47:42\n\n 44 // Submit metrics from agents\n 45 fastify.post('/', async (request, reply) => {\n 46 try {\n→ 47 const metric = await prisma.metric.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:56:12.377Z\"),\n + server: {\n + create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n + connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n + connect: ServerWhereUniqueInput\n + }\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `server` is missing."},"level":"error","message":"Upload failed for metrics - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:56:12.380Z"} {"code":"ERR_BAD_REQUEST","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"metrics\":[{\"type\":\"system\",\"cpuUsage\":23.751155989902273,\"ramUsage\":10889.95703125,\"ramTotal\":12163.59765625,\"diskUsage\":455182.46484375,\"diskTotal\":1441429.3046875,\"networkIn\":0.008931930106200322,\"networkOut\":0.025744682861433405,\"processCount\":299,\"loadAverage\":0,\"timestamp\":\"2025-07-24T07:56:05.877Z\"},{\"type\":\"project\",\"projectName\":\"test-api-project\",\"timestamp\":\"2025-07-24T07:56:05.877Z\",\"projectDiskUsage\":7.469361305236816}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:56:12.375Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"505","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/metrics","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"level":"error","message":"Error in metrics collection and upload: Request failed with status code 400","name":"AxiosError","request":{"_closed":true,"_contentLength":505,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/metrics HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 505\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/metrics","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"505","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/metrics","pathname":"/api/metrics","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":505,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/metrics","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","1039","Date","Thu, 24 Jul 2025 07:56:12 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/metrics","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"response":{"config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"metrics\":[{\"type\":\"system\",\"cpuUsage\":23.751155989902273,\"ramUsage\":10889.95703125,\"ramTotal\":12163.59765625,\"diskUsage\":455182.46484375,\"diskTotal\":1441429.3046875,\"networkIn\":0.008931930106200322,\"networkOut\":0.025744682861433405,\"processCount\":299,\"loadAverage\":0,\"timestamp\":\"2025-07-24T07:56:05.877Z\"},{\"type\":\"project\",\"projectName\":\"test-api-project\",\"timestamp\":\"2025-07-24T07:56:05.877Z\",\"projectDiskUsage\":7.469361305236816}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:56:12.375Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"505","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/metrics","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"data":{"error":"\nInvalid `prisma.metric.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\metrics.js:47:42\n\n 44 // Submit metrics from agents\n 45 fastify.post('/', async (request, reply) => {\n 46 try {\n→ 47 const metric = await prisma.metric.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:56:12.377Z\"),\n + server: {\n + create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n + connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n + connect: ServerWhereUniqueInput\n + }\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `server` is missing."},"headers":{"connection":"keep-alive","content-length":"1039","content-security-policy":"default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","content-type":"application/json; charset=utf-8","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","date":"Thu, 24 Jul 2025 07:56:12 GMT","keep-alive":"timeout=72","origin-agent-cluster":"?1","referrer-policy":"no-referrer","strict-transport-security":"max-age=15552000; includeSubDomains","vary":"Origin","x-content-type-options":"nosniff","x-dns-prefetch-control":"off","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"0"},"request":{"_closed":true,"_contentLength":505,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/metrics HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 505\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/metrics","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"505","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/metrics","pathname":"/api/metrics","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":505,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/metrics","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","1039","Date","Thu, 24 Jul 2025 07:56:12 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/metrics","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"status":400,"statusText":"Bad Request"},"service":"logvista-agent","stack":"AxiosError: Request failed with status code 400\n at settle (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:2090:12)\n at IncomingMessage.handleStreamEnd (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3207:11)\n at IncomingMessage.emit (node:events:519:35)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:21:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.collectAndUploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:124:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:28:7)","status":400,"timestamp":"2025-07-24T07:56:12.381Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\logs.js:51:36\n\n 48 // Submit logs from agents\n 49 fastify.post('/', async (request, reply) => {\n 50 try {\n→ 51 const log = await prisma.log.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:56:13.678Z\"),\n + message: String\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:56:13.680Z"} {"code":"ERR_BAD_REQUEST","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T07:56:00.000Z\",\"level\":\"INFO\",\"message\":\"Starting scheduled API request\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"Starting scheduled API request\",\"requestId\":1753343760231,\"service\":\"test-api\",\"statusMessage\":\"Network connectivity stable\",\"targetUrl\":\"https://httpbin.org/uuid\",\"timestamp\":\"2025-07-24 13:26:00\"}},{\"timestamp\":\"2025-07-24T07:56:00.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"63.73%\",\"disk\":\"54.00%\",\"level\":\"info\",\"memory\":\"26.17%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:26:00\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:56:00.000Z\",\"level\":\"INFO\",\"message\":\"Cache cleared successfully\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"eventId\":1753343760243,\"level\":\"info\",\"message\":\"Cache cleared successfully\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:26:00\",\"type\":\"scheduled_event\"}},{\"timestamp\":\"2025-07-24T07:56:00.000Z\",\"level\":\"INFO\",\"message\":\"Starting scheduled API request\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"Starting scheduled API request\",\"requestId\":1753343760231,\"service\":\"test-api\",\"statusMessage\":\"Network connectivity stable\",\"targetUrl\":\"https://httpbin.org/uuid\",\"timestamp\":\"2025-07-24 13:26:00\"}},{\"timestamp\":\"2025-07-24T07:56:00.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"63.73%\",\"disk\":\"54.00%\",\"level\":\"info\",\"memory\":\"26.17%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:26:00\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:56:00.000Z\",\"level\":\"INFO\",\"message\":\"Cache cleared successfully\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"eventId\":1753343760243,\"level\":\"info\",\"message\":\"Cache cleared successfully\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:26:00\",\"type\":\"scheduled_event\"}},{\"timestamp\":\"2025-07-24T07:56:01.000Z\",\"level\":\"INFO\",\"message\":\"API request successful\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"dataSize\":47,\"level\":\"info\",\"message\":\"API request successful\",\"requestId\":1753343760231,\"responseTime\":\"1331ms\",\"service\":\"test-api\",\"status\":\"Network connectivity stable\",\"statusCode\":200,\"timestamp\":\"2025-07-24 13:26:01\",\"url\":\"https://httpbin.org/uuid\"}},{\"timestamp\":\"2025-07-24T07:56:01.000Z\",\"level\":\"INFO\",\"message\":\"API request successful\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"dataSize\":47,\"level\":\"info\",\"message\":\"API request successful\",\"requestId\":1753343760231,\"responseTime\":\"1331ms\",\"service\":\"test-api\",\"status\":\"Network connectivity stable\",\"statusCode\":200,\"timestamp\":\"2025-07-24 13:26:01\",\"url\":\"https://httpbin.org/uuid\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:56:13.676Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"3413","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"level":"error","message":"Error in log upload: Request failed with status code 400","name":"AxiosError","request":{"_closed":true,"_contentLength":3413,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 3413\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"3413","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":3413,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","719","Date","Thu, 24 Jul 2025 07:56:13 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/logs","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"response":{"config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T07:56:00.000Z\",\"level\":\"INFO\",\"message\":\"Starting scheduled API request\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"Starting scheduled API request\",\"requestId\":1753343760231,\"service\":\"test-api\",\"statusMessage\":\"Network connectivity stable\",\"targetUrl\":\"https://httpbin.org/uuid\",\"timestamp\":\"2025-07-24 13:26:00\"}},{\"timestamp\":\"2025-07-24T07:56:00.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"63.73%\",\"disk\":\"54.00%\",\"level\":\"info\",\"memory\":\"26.17%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:26:00\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:56:00.000Z\",\"level\":\"INFO\",\"message\":\"Cache cleared successfully\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"eventId\":1753343760243,\"level\":\"info\",\"message\":\"Cache cleared successfully\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:26:00\",\"type\":\"scheduled_event\"}},{\"timestamp\":\"2025-07-24T07:56:00.000Z\",\"level\":\"INFO\",\"message\":\"Starting scheduled API request\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"Starting scheduled API request\",\"requestId\":1753343760231,\"service\":\"test-api\",\"statusMessage\":\"Network connectivity stable\",\"targetUrl\":\"https://httpbin.org/uuid\",\"timestamp\":\"2025-07-24 13:26:00\"}},{\"timestamp\":\"2025-07-24T07:56:00.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"63.73%\",\"disk\":\"54.00%\",\"level\":\"info\",\"memory\":\"26.17%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:26:00\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:56:00.000Z\",\"level\":\"INFO\",\"message\":\"Cache cleared successfully\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"eventId\":1753343760243,\"level\":\"info\",\"message\":\"Cache cleared successfully\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:26:00\",\"type\":\"scheduled_event\"}},{\"timestamp\":\"2025-07-24T07:56:01.000Z\",\"level\":\"INFO\",\"message\":\"API request successful\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"dataSize\":47,\"level\":\"info\",\"message\":\"API request successful\",\"requestId\":1753343760231,\"responseTime\":\"1331ms\",\"service\":\"test-api\",\"status\":\"Network connectivity stable\",\"statusCode\":200,\"timestamp\":\"2025-07-24 13:26:01\",\"url\":\"https://httpbin.org/uuid\"}},{\"timestamp\":\"2025-07-24T07:56:01.000Z\",\"level\":\"INFO\",\"message\":\"API request successful\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"dataSize\":47,\"level\":\"info\",\"message\":\"API request successful\",\"requestId\":1753343760231,\"responseTime\":\"1331ms\",\"service\":\"test-api\",\"status\":\"Network connectivity stable\",\"statusCode\":200,\"timestamp\":\"2025-07-24 13:26:01\",\"url\":\"https://httpbin.org/uuid\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:56:13.676Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"3413","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"data":{"error":"\nInvalid `prisma.log.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\logs.js:51:36\n\n 48 // Submit logs from agents\n 49 fastify.post('/', async (request, reply) => {\n 50 try {\n→ 51 const log = await prisma.log.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:56:13.678Z\"),\n + message: String\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `message` is missing."},"headers":{"connection":"keep-alive","content-length":"719","content-security-policy":"default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","content-type":"application/json; charset=utf-8","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","date":"Thu, 24 Jul 2025 07:56:13 GMT","keep-alive":"timeout=72","origin-agent-cluster":"?1","referrer-policy":"no-referrer","strict-transport-security":"max-age=15552000; includeSubDomains","vary":"Origin","x-content-type-options":"nosniff","x-dns-prefetch-control":"off","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"0"},"request":{"_closed":true,"_contentLength":3413,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 3413\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"3413","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":3413,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","719","Date","Thu, 24 Jul 2025 07:56:13 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/logs","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"status":400,"statusText":"Bad Request"},"service":"logvista-agent","stack":"AxiosError: Request failed with status code 400\n at settle (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:2090:12)\n at IncomingMessage.handleStreamEnd (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3207:11)\n at IncomingMessage.emit (node:events:519:35)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:42:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:138:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:37:7)","status":400,"timestamp":"2025-07-24T07:56:13.681Z"} {"data":{"error":"\nInvalid `prisma.metric.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\metrics.js:47:42\n\n 44 // Submit metrics from agents\n 45 fastify.post('/', async (request, reply) => {\n 46 try {\n→ 47 const metric = await prisma.metric.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:56:40.137Z\"),\n + server: {\n + create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n + connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n + connect: ServerWhereUniqueInput\n + }\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `server` is missing."},"level":"error","message":"Upload failed for metrics - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:56:40.169Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:56:40.170Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:56:40.817Z\"),\n+ message: String\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:56:40.857Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:56:40.857Z"} {"data":{"error":"\nInvalid `prisma.metric.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\metrics.js:47:42\n\n 44 // Submit metrics from agents\n 45 fastify.post('/', async (request, reply) => {\n 46 try {\n→ 47 const metric = await prisma.metric.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:56:41.186Z\"),\n + server: {\n + create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n + connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n + connect: ServerWhereUniqueInput\n + }\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `server` is missing."},"level":"error","message":"Upload failed for metrics - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:56:41.190Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:56:41.190Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:56:41.877Z\"),\n+ message: String\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:56:41.882Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:56:41.883Z"} {"data":{"error":"\nInvalid `prisma.metric.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\metrics.js:47:42\n\n 44 // Submit metrics from agents\n 45 fastify.post('/', async (request, reply) => {\n 46 try {\n→ 47 const metric = await prisma.metric.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:56:43.207Z\"),\n + server: {\n + create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n + connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n + connect: ServerWhereUniqueInput\n + }\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `server` is missing."},"level":"error","message":"Upload failed for metrics - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:56:43.209Z"} {"code":"ERR_BAD_REQUEST","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"metrics\":[{\"type\":\"system\",\"cpuUsage\":26.850444866540034,\"ramUsage\":10903.328125,\"ramTotal\":12163.59765625,\"diskUsage\":455182.4296875,\"diskTotal\":1441429.3046875,\"networkIn\":0.018384358007847938,\"networkOut\":0.019275867633048185,\"processCount\":299,\"loadAverage\":0,\"timestamp\":\"2025-07-24T07:56:36.621Z\"},{\"type\":\"project\",\"projectName\":\"test-api-project\",\"timestamp\":\"2025-07-24T07:56:36.621Z\",\"projectDiskUsage\":7.469710350036621}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:56:43.205Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"502","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/metrics","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"level":"error","message":"Error in metrics collection and upload: Request failed with status code 400","name":"AxiosError","request":{"_closed":true,"_contentLength":502,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/metrics HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 502\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/metrics","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"502","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/metrics","pathname":"/api/metrics","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":502,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/metrics","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","1039","Date","Thu, 24 Jul 2025 07:56:43 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/metrics","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"response":{"config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"metrics\":[{\"type\":\"system\",\"cpuUsage\":26.850444866540034,\"ramUsage\":10903.328125,\"ramTotal\":12163.59765625,\"diskUsage\":455182.4296875,\"diskTotal\":1441429.3046875,\"networkIn\":0.018384358007847938,\"networkOut\":0.019275867633048185,\"processCount\":299,\"loadAverage\":0,\"timestamp\":\"2025-07-24T07:56:36.621Z\"},{\"type\":\"project\",\"projectName\":\"test-api-project\",\"timestamp\":\"2025-07-24T07:56:36.621Z\",\"projectDiskUsage\":7.469710350036621}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:56:43.205Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"502","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/metrics","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"data":{"error":"\nInvalid `prisma.metric.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\metrics.js:47:42\n\n 44 // Submit metrics from agents\n 45 fastify.post('/', async (request, reply) => {\n 46 try {\n→ 47 const metric = await prisma.metric.create({\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:56:43.207Z\"),\n + server: {\n + create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n + connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n + connect: ServerWhereUniqueInput\n + }\n },\n include: {\n server: true,\n project: true\n }\n })\n\nArgument `server` is missing."},"headers":{"connection":"keep-alive","content-length":"1039","content-security-policy":"default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","content-type":"application/json; charset=utf-8","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","date":"Thu, 24 Jul 2025 07:56:43 GMT","keep-alive":"timeout=72","origin-agent-cluster":"?1","referrer-policy":"no-referrer","strict-transport-security":"max-age=15552000; includeSubDomains","vary":"Origin","x-content-type-options":"nosniff","x-dns-prefetch-control":"off","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"0"},"request":{"_closed":true,"_contentLength":502,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/metrics HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 502\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/metrics","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"502","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/metrics","pathname":"/api/metrics","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":502,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/metrics","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","1039","Date","Thu, 24 Jul 2025 07:56:43 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/metrics","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"status":400,"statusText":"Bad Request"},"service":"logvista-agent","stack":"AxiosError: Request failed with status code 400\n at settle (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:2090:12)\n at IncomingMessage.handleStreamEnd (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3207:11)\n at IncomingMessage.emit (node:events:519:35)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:21:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.collectAndUploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:124:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:28:7)","status":400,"timestamp":"2025-07-24T07:56:43.209Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:56:43.897Z\"),\n+ message: String\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:56:43.900Z"} {"code":"ERR_BAD_REQUEST","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T07:56:30.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"38.88%\",\"disk\":\"54.37%\",\"level\":\"info\",\"memory\":\"51.63%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:26:30\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:56:30.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"38.88%\",\"disk\":\"54.37%\",\"level\":\"info\",\"memory\":\"51.63%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:26:30\",\"type\":\"system_metrics\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:56:43.896Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"858","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"level":"error","message":"Error in log upload: Request failed with status code 400","name":"AxiosError","request":{"_closed":true,"_contentLength":858,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 858\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"858","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":858,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","373","Date","Thu, 24 Jul 2025 07:56:43 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/logs","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"response":{"config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T07:56:30.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"38.88%\",\"disk\":\"54.37%\",\"level\":\"info\",\"memory\":\"51.63%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:26:30\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:56:30.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"38.88%\",\"disk\":\"54.37%\",\"level\":\"info\",\"memory\":\"51.63%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:26:30\",\"type\":\"system_metrics\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:56:43.896Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"858","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"data":{"error":"\nInvalid `prisma.log.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:56:43.897Z\"),\n+ message: String\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `message` is missing."},"headers":{"connection":"keep-alive","content-length":"373","content-security-policy":"default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","content-type":"application/json; charset=utf-8","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","date":"Thu, 24 Jul 2025 07:56:43 GMT","keep-alive":"timeout=72","origin-agent-cluster":"?1","referrer-policy":"no-referrer","strict-transport-security":"max-age=15552000; includeSubDomains","vary":"Origin","x-content-type-options":"nosniff","x-dns-prefetch-control":"off","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"0"},"request":{"_closed":true,"_contentLength":858,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 858\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"858","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":858,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","373","Date","Thu, 24 Jul 2025 07:56:43 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/logs","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"status":400,"statusText":"Bad Request"},"service":"logvista-agent","stack":"AxiosError: Request failed with status code 400\n at settle (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:2090:12)\n at IncomingMessage.handleStreamEnd (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3207:11)\n at IncomingMessage.emit (node:events:519:35)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:42:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:138:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:37:7)","status":400,"timestamp":"2025-07-24T07:56:43.901Z"} {"data":{"error":"\nInvalid `prisma.metric.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:57:09.850Z\"),\n+ server: {\n+ create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n+ connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n+ connect: ServerWhereUniqueInput\n+ }\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `server` is missing."},"level":"error","message":"Upload failed for metrics - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:57:09.892Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:57:09.892Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:57:10.016Z\"),\n+ message: String\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:57:10.020Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:57:10.021Z"} {"data":{"error":"\nInvalid `prisma.metric.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:57:10.903Z\"),\n+ server: {\n+ create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n+ connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n+ connect: ServerWhereUniqueInput\n+ }\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `server` is missing."},"level":"error","message":"Upload failed for metrics - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:57:10.906Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:57:10.907Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:57:11.034Z\"),\n+ message: String\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:57:11.039Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:57:11.040Z"} {"data":{"error":"\nInvalid `prisma.metric.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:57:12.920Z\"),\n+ server: {\n+ create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n+ connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n+ connect: ServerWhereUniqueInput\n+ }\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `server` is missing."},"level":"error","message":"Upload failed for metrics - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:57:12.927Z"} {"code":"ERR_BAD_REQUEST","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"metrics\":[{\"type\":\"system\",\"cpuUsage\":25.242723405124647,\"ramUsage\":10831.2109375,\"ramTotal\":12163.59765625,\"diskUsage\":455182.71875,\"diskTotal\":1441429.3046875,\"networkIn\":0.010730259359657811,\"networkOut\":0.023680677082469653,\"processCount\":298,\"loadAverage\":0,\"timestamp\":\"2025-07-24T07:57:06.142Z\"},{\"type\":\"project\",\"projectName\":\"test-api-project\",\"timestamp\":\"2025-07-24T07:57:06.142Z\",\"projectDiskUsage\":7.470990180969238}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:57:12.915Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"501","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/metrics","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"level":"error","message":"Error in metrics collection and upload: Request failed with status code 400","name":"AxiosError","request":{"_closed":true,"_contentLength":501,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/metrics HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 501\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/metrics","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"501","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/metrics","pathname":"/api/metrics","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":501,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/metrics","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","618","Date","Thu, 24 Jul 2025 07:57:12 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/metrics","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"response":{"config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"metrics\":[{\"type\":\"system\",\"cpuUsage\":25.242723405124647,\"ramUsage\":10831.2109375,\"ramTotal\":12163.59765625,\"diskUsage\":455182.71875,\"diskTotal\":1441429.3046875,\"networkIn\":0.010730259359657811,\"networkOut\":0.023680677082469653,\"processCount\":298,\"loadAverage\":0,\"timestamp\":\"2025-07-24T07:57:06.142Z\"},{\"type\":\"project\",\"projectName\":\"test-api-project\",\"timestamp\":\"2025-07-24T07:57:06.142Z\",\"projectDiskUsage\":7.470990180969238}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:57:12.915Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"501","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/metrics","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"data":{"error":"\nInvalid `prisma.metric.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:57:12.920Z\"),\n+ server: {\n+ create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n+ connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n+ connect: ServerWhereUniqueInput\n+ }\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `server` is missing."},"headers":{"connection":"keep-alive","content-length":"618","content-security-policy":"default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","content-type":"application/json; charset=utf-8","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","date":"Thu, 24 Jul 2025 07:57:12 GMT","keep-alive":"timeout=72","origin-agent-cluster":"?1","referrer-policy":"no-referrer","strict-transport-security":"max-age=15552000; includeSubDomains","vary":"Origin","x-content-type-options":"nosniff","x-dns-prefetch-control":"off","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"0"},"request":{"_closed":true,"_contentLength":501,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/metrics HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 501\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/metrics","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"501","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/metrics","pathname":"/api/metrics","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":501,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/metrics","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","618","Date","Thu, 24 Jul 2025 07:57:12 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/metrics","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"status":400,"statusText":"Bad Request"},"service":"logvista-agent","stack":"AxiosError: Request failed with status code 400\n at settle (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:2090:12)\n at IncomingMessage.handleStreamEnd (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3207:11)\n at IncomingMessage.emit (node:events:519:35)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:21:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.collectAndUploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:124:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:28:7)","status":400,"timestamp":"2025-07-24T07:57:12.929Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:57:13.046Z\"),\n+ message: String\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:57:13.052Z"} {"code":"ERR_BAD_REQUEST","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T07:57:00.000Z\",\"level\":\"INFO\",\"message\":\"Starting scheduled API request\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"Starting scheduled API request\",\"requestId\":1753343820717,\"service\":\"test-api\",\"statusMessage\":\"Database connections healthy\",\"targetUrl\":\"https://httpbin.org/get\",\"timestamp\":\"2025-07-24 13:27:00\"}},{\"timestamp\":\"2025-07-24T07:57:00.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"4.09%\",\"disk\":\"89.23%\",\"level\":\"info\",\"memory\":\"48.78%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:27:00\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:57:00.000Z\",\"level\":\"INFO\",\"message\":\"Starting scheduled API request\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"Starting scheduled API request\",\"requestId\":1753343820717,\"service\":\"test-api\",\"statusMessage\":\"Database connections healthy\",\"targetUrl\":\"https://httpbin.org/get\",\"timestamp\":\"2025-07-24 13:27:00\"}},{\"timestamp\":\"2025-07-24T07:57:00.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"4.09%\",\"disk\":\"89.23%\",\"level\":\"info\",\"memory\":\"48.78%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:27:00\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:57:01.000Z\",\"level\":\"INFO\",\"message\":\"API request successful\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"dataSize\":294,\"level\":\"info\",\"message\":\"API request successful\",\"requestId\":1753343820717,\"responseTime\":\"1113ms\",\"service\":\"test-api\",\"status\":\"Database connections healthy\",\"statusCode\":200,\"timestamp\":\"2025-07-24 13:27:01\",\"url\":\"https://httpbin.org/get\"}},{\"timestamp\":\"2025-07-24T07:57:01.000Z\",\"level\":\"INFO\",\"message\":\"API request successful\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"dataSize\":294,\"level\":\"info\",\"message\":\"API request successful\",\"requestId\":1753343820717,\"responseTime\":\"1113ms\",\"service\":\"test-api\",\"status\":\"Database connections healthy\",\"statusCode\":200,\"timestamp\":\"2025-07-24 13:27:01\",\"url\":\"https://httpbin.org/get\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:57:13.042Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"2672","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"level":"error","message":"Error in log upload: Request failed with status code 400","name":"AxiosError","request":{"_closed":true,"_contentLength":2672,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 2672\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"2672","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":2672,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","373","Date","Thu, 24 Jul 2025 07:57:13 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/logs","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"response":{"config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T07:57:00.000Z\",\"level\":\"INFO\",\"message\":\"Starting scheduled API request\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"Starting scheduled API request\",\"requestId\":1753343820717,\"service\":\"test-api\",\"statusMessage\":\"Database connections healthy\",\"targetUrl\":\"https://httpbin.org/get\",\"timestamp\":\"2025-07-24 13:27:00\"}},{\"timestamp\":\"2025-07-24T07:57:00.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"4.09%\",\"disk\":\"89.23%\",\"level\":\"info\",\"memory\":\"48.78%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:27:00\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:57:00.000Z\",\"level\":\"INFO\",\"message\":\"Starting scheduled API request\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"Starting scheduled API request\",\"requestId\":1753343820717,\"service\":\"test-api\",\"statusMessage\":\"Database connections healthy\",\"targetUrl\":\"https://httpbin.org/get\",\"timestamp\":\"2025-07-24 13:27:00\"}},{\"timestamp\":\"2025-07-24T07:57:00.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"4.09%\",\"disk\":\"89.23%\",\"level\":\"info\",\"memory\":\"48.78%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:27:00\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:57:01.000Z\",\"level\":\"INFO\",\"message\":\"API request successful\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"dataSize\":294,\"level\":\"info\",\"message\":\"API request successful\",\"requestId\":1753343820717,\"responseTime\":\"1113ms\",\"service\":\"test-api\",\"status\":\"Database connections healthy\",\"statusCode\":200,\"timestamp\":\"2025-07-24 13:27:01\",\"url\":\"https://httpbin.org/get\"}},{\"timestamp\":\"2025-07-24T07:57:01.000Z\",\"level\":\"INFO\",\"message\":\"API request successful\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"dataSize\":294,\"level\":\"info\",\"message\":\"API request successful\",\"requestId\":1753343820717,\"responseTime\":\"1113ms\",\"service\":\"test-api\",\"status\":\"Database connections healthy\",\"statusCode\":200,\"timestamp\":\"2025-07-24 13:27:01\",\"url\":\"https://httpbin.org/get\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:57:13.042Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"2672","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"data":{"error":"\nInvalid `prisma.log.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:57:13.046Z\"),\n+ message: String\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `message` is missing."},"headers":{"connection":"keep-alive","content-length":"373","content-security-policy":"default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","content-type":"application/json; charset=utf-8","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","date":"Thu, 24 Jul 2025 07:57:13 GMT","keep-alive":"timeout=72","origin-agent-cluster":"?1","referrer-policy":"no-referrer","strict-transport-security":"max-age=15552000; includeSubDomains","vary":"Origin","x-content-type-options":"nosniff","x-dns-prefetch-control":"off","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"0"},"request":{"_closed":true,"_contentLength":2672,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 2672\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"2672","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":2672,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","373","Date","Thu, 24 Jul 2025 07:57:13 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/logs","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"status":400,"statusText":"Bad Request"},"service":"logvista-agent","stack":"AxiosError: Request failed with status code 400\n at settle (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:2090:12)\n at IncomingMessage.handleStreamEnd (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3207:11)\n at IncomingMessage.emit (node:events:519:35)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:42:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:138:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:37:7)","status":400,"timestamp":"2025-07-24T07:57:13.053Z"} {"data":{"error":"\nInvalid `prisma.metric.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:57:38.652Z\"),\n+ server: {\n+ create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n+ connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n+ connect: ServerWhereUniqueInput\n+ }\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `server` is missing."},"level":"error","message":"Upload failed for metrics - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:57:38.688Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:57:38.688Z"} {"data":{"error":"\nInvalid `prisma.metric.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:57:39.698Z\"),\n+ server: {\n+ create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n+ connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n+ connect: ServerWhereUniqueInput\n+ }\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `server` is missing."},"level":"error","message":"Upload failed for metrics - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:57:39.701Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:57:39.702Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:57:40.561Z\"),\n+ message: String\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:57:40.564Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:57:40.565Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:57:41.577Z\"),\n+ message: String\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:57:41.579Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:57:41.579Z"} {"data":{"error":"\nInvalid `prisma.metric.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:57:41.718Z\"),\n+ server: {\n+ create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n+ connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n+ connect: ServerWhereUniqueInput\n+ }\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `server` is missing."},"level":"error","message":"Upload failed for metrics - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:57:41.721Z"} {"code":"ERR_BAD_REQUEST","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"metrics\":[{\"type\":\"system\",\"cpuUsage\":15.016198367702946,\"ramUsage\":10808.48046875,\"ramTotal\":12163.59765625,\"diskUsage\":455183.29296875,\"diskTotal\":1441429.3046875,\"networkIn\":0.0027697294214942044,\"networkOut\":0.004721592266314789,\"processCount\":295,\"loadAverage\":0,\"timestamp\":\"2025-07-24T07:57:35.230Z\"},{\"type\":\"project\",\"projectName\":\"test-api-project\",\"timestamp\":\"2025-07-24T07:57:35.230Z\",\"projectDiskUsage\":7.4716081619262695}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:57:41.716Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"507","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/metrics","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"level":"error","message":"Error in metrics collection and upload: Request failed with status code 400","name":"AxiosError","request":{"_closed":true,"_contentLength":507,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/metrics HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 507\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/metrics","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"507","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/metrics","pathname":"/api/metrics","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":507,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/metrics","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","618","Date","Thu, 24 Jul 2025 07:57:41 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/metrics","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"response":{"config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"metrics\":[{\"type\":\"system\",\"cpuUsage\":15.016198367702946,\"ramUsage\":10808.48046875,\"ramTotal\":12163.59765625,\"diskUsage\":455183.29296875,\"diskTotal\":1441429.3046875,\"networkIn\":0.0027697294214942044,\"networkOut\":0.004721592266314789,\"processCount\":295,\"loadAverage\":0,\"timestamp\":\"2025-07-24T07:57:35.230Z\"},{\"type\":\"project\",\"projectName\":\"test-api-project\",\"timestamp\":\"2025-07-24T07:57:35.230Z\",\"projectDiskUsage\":7.4716081619262695}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:57:41.716Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"507","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/metrics","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"data":{"error":"\nInvalid `prisma.metric.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:57:41.718Z\"),\n+ server: {\n+ create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n+ connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n+ connect: ServerWhereUniqueInput\n+ }\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `server` is missing."},"headers":{"connection":"keep-alive","content-length":"618","content-security-policy":"default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","content-type":"application/json; charset=utf-8","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","date":"Thu, 24 Jul 2025 07:57:41 GMT","keep-alive":"timeout=72","origin-agent-cluster":"?1","referrer-policy":"no-referrer","strict-transport-security":"max-age=15552000; includeSubDomains","vary":"Origin","x-content-type-options":"nosniff","x-dns-prefetch-control":"off","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"0"},"request":{"_closed":true,"_contentLength":507,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/metrics HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 507\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/metrics","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"507","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/metrics","pathname":"/api/metrics","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":507,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/metrics","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","618","Date","Thu, 24 Jul 2025 07:57:41 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/metrics","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"status":400,"statusText":"Bad Request"},"service":"logvista-agent","stack":"AxiosError: Request failed with status code 400\n at settle (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:2090:12)\n at IncomingMessage.handleStreamEnd (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3207:11)\n at IncomingMessage.emit (node:events:519:35)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:21:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.collectAndUploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:124:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:28:7)","status":400,"timestamp":"2025-07-24T07:57:41.721Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:57:43.599Z\"),\n+ message: String\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:57:43.606Z"} {"code":"ERR_BAD_REQUEST","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T07:57:30.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"92.99%\",\"disk\":\"10.51%\",\"level\":\"info\",\"memory\":\"6.93%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:27:30\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:57:30.000Z\",\"level\":\"WARN\",\"message\":\"High CPU usage detected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"92.99%\",\"level\":\"warn\",\"message\":\"High CPU usage detected\",\"service\":\"test-api\",\"threshold\":\"80%\",\"timestamp\":\"2025-07-24 13:27:30\"}},{\"timestamp\":\"2025-07-24T07:57:30.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"92.99%\",\"disk\":\"10.51%\",\"level\":\"info\",\"memory\":\"6.93%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:27:30\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:57:30.000Z\",\"level\":\"WARN\",\"message\":\"High CPU usage detected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"92.99%\",\"level\":\"warn\",\"message\":\"High CPU usage detected\",\"service\":\"test-api\",\"threshold\":\"80%\",\"timestamp\":\"2025-07-24 13:27:30\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:57:43.595Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"1553","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"level":"error","message":"Error in log upload: Request failed with status code 400","name":"AxiosError","request":{"_closed":true,"_contentLength":1553,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 1553\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"1553","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":1553,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","373","Date","Thu, 24 Jul 2025 07:57:43 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/logs","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"response":{"config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T07:57:30.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"92.99%\",\"disk\":\"10.51%\",\"level\":\"info\",\"memory\":\"6.93%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:27:30\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:57:30.000Z\",\"level\":\"WARN\",\"message\":\"High CPU usage detected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"92.99%\",\"level\":\"warn\",\"message\":\"High CPU usage detected\",\"service\":\"test-api\",\"threshold\":\"80%\",\"timestamp\":\"2025-07-24 13:27:30\"}},{\"timestamp\":\"2025-07-24T07:57:30.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"92.99%\",\"disk\":\"10.51%\",\"level\":\"info\",\"memory\":\"6.93%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:27:30\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:57:30.000Z\",\"level\":\"WARN\",\"message\":\"High CPU usage detected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"92.99%\",\"level\":\"warn\",\"message\":\"High CPU usage detected\",\"service\":\"test-api\",\"threshold\":\"80%\",\"timestamp\":\"2025-07-24 13:27:30\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:57:43.595Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"1553","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"data":{"error":"\nInvalid `prisma.log.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:57:43.599Z\"),\n+ message: String\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `message` is missing."},"headers":{"connection":"keep-alive","content-length":"373","content-security-policy":"default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","content-type":"application/json; charset=utf-8","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","date":"Thu, 24 Jul 2025 07:57:43 GMT","keep-alive":"timeout=72","origin-agent-cluster":"?1","referrer-policy":"no-referrer","strict-transport-security":"max-age=15552000; includeSubDomains","vary":"Origin","x-content-type-options":"nosniff","x-dns-prefetch-control":"off","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"0"},"request":{"_closed":true,"_contentLength":1553,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 1553\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"1553","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":1553,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","373","Date","Thu, 24 Jul 2025 07:57:43 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/logs","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"status":400,"statusText":"Bad Request"},"service":"logvista-agent","stack":"AxiosError: Request failed with status code 400\n at settle (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:2090:12)\n at IncomingMessage.handleStreamEnd (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3207:11)\n at IncomingMessage.emit (node:events:519:35)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:42:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:138:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:37:7)","status":400,"timestamp":"2025-07-24T07:57:43.608Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:58:00.676Z\"),\n+ message: String\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:58:00.716Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:58:00.716Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:58:01.729Z\"),\n+ message: String\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:58:01.731Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:58:01.732Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:58:03.744Z\"),\n+ message: String\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:58:03.747Z"} {"code":"ERR_BAD_REQUEST","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T07:58:00.000Z\",\"level\":\"INFO\",\"message\":\"Starting scheduled API request\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"Starting scheduled API request\",\"requestId\":1753343880167,\"service\":\"test-api\",\"statusMessage\":\"System running normally\",\"targetUrl\":\"https://httpbin.org/get\",\"timestamp\":\"2025-07-24 13:28:00\"}},{\"timestamp\":\"2025-07-24T07:58:00.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"10.63%\",\"disk\":\"61.72%\",\"level\":\"info\",\"memory\":\"57.95%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:28:00\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:58:00.000Z\",\"level\":\"INFO\",\"message\":\"File upload processed\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"eventId\":1753343880170,\"level\":\"info\",\"message\":\"File upload processed\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:28:00\",\"type\":\"scheduled_event\"}},{\"timestamp\":\"2025-07-24T07:58:00.000Z\",\"level\":\"INFO\",\"message\":\"Starting scheduled API request\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"Starting scheduled API request\",\"requestId\":1753343880167,\"service\":\"test-api\",\"statusMessage\":\"System running normally\",\"targetUrl\":\"https://httpbin.org/get\",\"timestamp\":\"2025-07-24 13:28:00\"}},{\"timestamp\":\"2025-07-24T07:58:00.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"10.63%\",\"disk\":\"61.72%\",\"level\":\"info\",\"memory\":\"57.95%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:28:00\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:58:00.000Z\",\"level\":\"INFO\",\"message\":\"File upload processed\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"eventId\":1753343880170,\"level\":\"info\",\"message\":\"File upload processed\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:28:00\",\"type\":\"scheduled_event\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:58:03.743Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"2450","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"level":"error","message":"Error in log upload: Request failed with status code 400","name":"AxiosError","request":{"_closed":true,"_contentLength":2450,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 2450\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"2450","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":2450,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","373","Date","Thu, 24 Jul 2025 07:58:03 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/logs","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"response":{"config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T07:58:00.000Z\",\"level\":\"INFO\",\"message\":\"Starting scheduled API request\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"Starting scheduled API request\",\"requestId\":1753343880167,\"service\":\"test-api\",\"statusMessage\":\"System running normally\",\"targetUrl\":\"https://httpbin.org/get\",\"timestamp\":\"2025-07-24 13:28:00\"}},{\"timestamp\":\"2025-07-24T07:58:00.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"10.63%\",\"disk\":\"61.72%\",\"level\":\"info\",\"memory\":\"57.95%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:28:00\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:58:00.000Z\",\"level\":\"INFO\",\"message\":\"File upload processed\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"eventId\":1753343880170,\"level\":\"info\",\"message\":\"File upload processed\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:28:00\",\"type\":\"scheduled_event\"}},{\"timestamp\":\"2025-07-24T07:58:00.000Z\",\"level\":\"INFO\",\"message\":\"Starting scheduled API request\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"Starting scheduled API request\",\"requestId\":1753343880167,\"service\":\"test-api\",\"statusMessage\":\"System running normally\",\"targetUrl\":\"https://httpbin.org/get\",\"timestamp\":\"2025-07-24 13:28:00\"}},{\"timestamp\":\"2025-07-24T07:58:00.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"10.63%\",\"disk\":\"61.72%\",\"level\":\"info\",\"memory\":\"57.95%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:28:00\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:58:00.000Z\",\"level\":\"INFO\",\"message\":\"File upload processed\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"eventId\":1753343880170,\"level\":\"info\",\"message\":\"File upload processed\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:28:00\",\"type\":\"scheduled_event\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:58:03.743Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"2450","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"data":{"error":"\nInvalid `prisma.log.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:58:03.744Z\"),\n+ message: String\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `message` is missing."},"headers":{"connection":"keep-alive","content-length":"373","content-security-policy":"default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","content-type":"application/json; charset=utf-8","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","date":"Thu, 24 Jul 2025 07:58:03 GMT","keep-alive":"timeout=72","origin-agent-cluster":"?1","referrer-policy":"no-referrer","strict-transport-security":"max-age=15552000; includeSubDomains","vary":"Origin","x-content-type-options":"nosniff","x-dns-prefetch-control":"off","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"0"},"request":{"_closed":true,"_contentLength":2450,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 2450\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"2450","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":2450,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","373","Date","Thu, 24 Jul 2025 07:58:03 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/logs","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"status":400,"statusText":"Bad Request"},"service":"logvista-agent","stack":"AxiosError: Request failed with status code 400\n at settle (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:2090:12)\n at IncomingMessage.handleStreamEnd (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3207:11)\n at IncomingMessage.emit (node:events:519:35)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:42:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:138:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:37:7)","status":400,"timestamp":"2025-07-24T07:58:03.747Z"} {"data":{"error":"\nInvalid `prisma.metric.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:58:09.480Z\"),\n+ server: {\n+ create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n+ connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n+ connect: ServerWhereUniqueInput\n+ }\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `server` is missing."},"level":"error","message":"Upload failed for metrics - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:58:09.482Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:58:09.483Z"} {"data":{"error":"\nInvalid `prisma.metric.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:58:10.488Z\"),\n+ server: {\n+ create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n+ connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n+ connect: ServerWhereUniqueInput\n+ }\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `server` is missing."},"level":"error","message":"Upload failed for metrics - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:58:10.491Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:58:10.491Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:58:10.753Z\"),\n+ message: String\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:58:10.756Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:58:10.757Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:58:11.769Z\"),\n+ message: String\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:58:11.772Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:58:11.773Z"} {"data":{"error":"\nInvalid `prisma.metric.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:58:12.502Z\"),\n+ server: {\n+ create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n+ connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n+ connect: ServerWhereUniqueInput\n+ }\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `server` is missing."},"level":"error","message":"Upload failed for metrics - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:58:12.505Z"} {"code":"ERR_BAD_REQUEST","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"metrics\":[{\"type\":\"system\",\"cpuUsage\":17.470358086234633,\"ramUsage\":10821.59765625,\"ramTotal\":12163.59765625,\"diskUsage\":455183.61328125,\"diskTotal\":1441429.3046875,\"networkIn\":0.001975468226841518,\"networkOut\":0.0018982029465771228,\"processCount\":297,\"loadAverage\":0,\"timestamp\":\"2025-07-24T07:58:05.860Z\"},{\"type\":\"project\",\"projectName\":\"test-api-project\",\"timestamp\":\"2025-07-24T07:58:05.860Z\",\"projectDiskUsage\":7.473166465759277}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:58:12.501Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"506","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/metrics","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"level":"error","message":"Error in metrics collection and upload: Request failed with status code 400","name":"AxiosError","request":{"_closed":true,"_contentLength":506,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/metrics HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 506\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/metrics","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"506","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/metrics","pathname":"/api/metrics","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":506,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/metrics","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","618","Date","Thu, 24 Jul 2025 07:58:12 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/metrics","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"response":{"config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"metrics\":[{\"type\":\"system\",\"cpuUsage\":17.470358086234633,\"ramUsage\":10821.59765625,\"ramTotal\":12163.59765625,\"diskUsage\":455183.61328125,\"diskTotal\":1441429.3046875,\"networkIn\":0.001975468226841518,\"networkOut\":0.0018982029465771228,\"processCount\":297,\"loadAverage\":0,\"timestamp\":\"2025-07-24T07:58:05.860Z\"},{\"type\":\"project\",\"projectName\":\"test-api-project\",\"timestamp\":\"2025-07-24T07:58:05.860Z\",\"projectDiskUsage\":7.473166465759277}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:58:12.501Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"506","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/metrics","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"data":{"error":"\nInvalid `prisma.metric.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n cpuUsage: 0,\n ramUsage: 0,\n ramTotal: 0,\n diskUsage: 0,\n diskTotal: 0,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:58:12.502Z\"),\n+ server: {\n+ create: ServerCreateWithoutMetricsInput | ServerUncheckedCreateWithoutMetricsInput,\n+ connectOrCreate: ServerCreateOrConnectWithoutMetricsInput,\n+ connect: ServerWhereUniqueInput\n+ }\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `server` is missing."},"headers":{"connection":"keep-alive","content-length":"618","content-security-policy":"default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","content-type":"application/json; charset=utf-8","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","date":"Thu, 24 Jul 2025 07:58:12 GMT","keep-alive":"timeout=72","origin-agent-cluster":"?1","referrer-policy":"no-referrer","strict-transport-security":"max-age=15552000; includeSubDomains","vary":"Origin","x-content-type-options":"nosniff","x-dns-prefetch-control":"off","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"0"},"request":{"_closed":true,"_contentLength":506,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/metrics HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 506\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/metrics","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"506","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/metrics","pathname":"/api/metrics","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":506,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/metrics","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","618","Date","Thu, 24 Jul 2025 07:58:12 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/metrics","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"status":400,"statusText":"Bad Request"},"service":"logvista-agent","stack":"AxiosError: Request failed with status code 400\n at settle (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:2090:12)\n at IncomingMessage.handleStreamEnd (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3207:11)\n at IncomingMessage.emit (node:events:519:35)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:21:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.collectAndUploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:124:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:28:7)","status":400,"timestamp":"2025-07-24T07:58:12.505Z"} {"data":{"error":"\nInvalid `prisma.log.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:58:13.786Z\"),\n+ message: String\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `message` is missing."},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T07:58:13.793Z"} {"code":"ERR_BAD_REQUEST","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T07:58:01.000Z\",\"level\":\"INFO\",\"message\":\"API request successful\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"dataSize\":294,\"level\":\"info\",\"message\":\"API request successful\",\"requestId\":1753343880167,\"responseTime\":\"990ms\",\"service\":\"test-api\",\"status\":\"System running normally\",\"statusCode\":200,\"timestamp\":\"2025-07-24 13:28:01\",\"url\":\"https://httpbin.org/get\"}},{\"timestamp\":\"2025-07-24T07:58:01.000Z\",\"level\":\"INFO\",\"message\":\"API request successful\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"dataSize\":294,\"level\":\"info\",\"message\":\"API request successful\",\"requestId\":1753343880167,\"responseTime\":\"990ms\",\"service\":\"test-api\",\"status\":\"System running normally\",\"statusCode\":200,\"timestamp\":\"2025-07-24 13:28:01\",\"url\":\"https://httpbin.org/get\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:58:13.781Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"1000","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"level":"error","message":"Error in log upload: Request failed with status code 400","name":"AxiosError","request":{"_closed":true,"_contentLength":1000,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 1000\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"1000","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":1000,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","373","Date","Thu, 24 Jul 2025 07:58:13 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/logs","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"response":{"config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T07:58:01.000Z\",\"level\":\"INFO\",\"message\":\"API request successful\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"dataSize\":294,\"level\":\"info\",\"message\":\"API request successful\",\"requestId\":1753343880167,\"responseTime\":\"990ms\",\"service\":\"test-api\",\"status\":\"System running normally\",\"statusCode\":200,\"timestamp\":\"2025-07-24 13:28:01\",\"url\":\"https://httpbin.org/get\"}},{\"timestamp\":\"2025-07-24T07:58:01.000Z\",\"level\":\"INFO\",\"message\":\"API request successful\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"dataSize\":294,\"level\":\"info\",\"message\":\"API request successful\",\"requestId\":1753343880167,\"responseTime\":\"990ms\",\"service\":\"test-api\",\"status\":\"System running normally\",\"statusCode\":200,\"timestamp\":\"2025-07-24 13:28:01\",\"url\":\"https://httpbin.org/get\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:58:13.781Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"1000","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"data":{"error":"\nInvalid `prisma.log.create()` invocation:\n\n{\n data: {\n serverId: undefined,\n projectId: undefined,\n level: \"INFO\",\n source: undefined,\n metadata: undefined,\n timestamp: new Date(\"2025-07-24T07:58:13.786Z\"),\n+ message: String\n },\n include: {\n server: true,\n project: true\n }\n}\n\nArgument `message` is missing."},"headers":{"connection":"keep-alive","content-length":"373","content-security-policy":"default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","content-type":"application/json; charset=utf-8","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","date":"Thu, 24 Jul 2025 07:58:13 GMT","keep-alive":"timeout=72","origin-agent-cluster":"?1","referrer-policy":"no-referrer","strict-transport-security":"max-age=15552000; includeSubDomains","vary":"Origin","x-content-type-options":"nosniff","x-dns-prefetch-control":"off","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"0"},"request":{"_closed":true,"_contentLength":1000,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 1000\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"1000","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":1000,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","373","Date","Thu, 24 Jul 2025 07:58:13 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/logs","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"status":400,"statusText":"Bad Request"},"service":"logvista-agent","stack":"AxiosError: Request failed with status code 400\n at settle (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:2090:12)\n at IncomingMessage.handleStreamEnd (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3207:11)\n at IncomingMessage.emit (node:events:519:35)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:42:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:138:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:37:7)","status":400,"timestamp":"2025-07-24T07:58:13.794Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T07:58:30.935Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T07-58-30-936Z.json","service":"logvista-agent","timestamp":"2025-07-24T07:58:30.937Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:58:30.938Z"} {"level":"info","message":"Initializing LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:58:31.560Z"} {"level":"info","message":"Configuration loaded successfully","service":"logvista-agent","timestamp":"2025-07-24T07:58:31.573Z"} {"level":"error","message":"Connection test failed:","service":"logvista-agent","timestamp":"2025-07-24T07:58:31.646Z"} {"level":"warn","message":"Unable to connect to central system. Agent will continue and retry periodically.","service":"logvista-agent","timestamp":"2025-07-24T07:58:31.647Z"} {"level":"info","message":"LogVista Agent initialized successfully","service":"logvista-agent","timestamp":"2025-07-24T07:58:31.647Z"} {"level":"info","message":"Starting LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:58:31.648Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\app.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:58:31.653Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\error.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:58:31.656Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\access.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:58:31.657Z"} {"level":"info","message":"Started watching project logs in: E:\\Freelance\\LogVistaV2\\test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:58:31.658Z"} {"level":"info","message":"Starting LogVista Agent Scheduler","service":"logvista-agent","timestamp":"2025-07-24T07:58:31.659Z"} {"level":"info","message":"Started metrics task","service":"logvista-agent","timestamp":"2025-07-24T07:58:31.665Z"} {"level":"info","message":"Started logs task","service":"logvista-agent","timestamp":"2025-07-24T07:58:31.666Z"} {"level":"info","message":"Started retry task","service":"logvista-agent","timestamp":"2025-07-24T07:58:31.666Z"} {"level":"info","message":"Started serverInfo task","service":"logvista-agent","timestamp":"2025-07-24T07:58:31.667Z"} {"level":"info","message":"All scheduled tasks started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:58:31.667Z"} {"level":"info","message":"LogVista Agent started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:58:31.668Z"} {"config":{"batchSize":100,"centralUrl":"http://localhost:3001","collectionInterval":30},"isRunning":true,"level":"info","message":"Agent Status:","projects":[{"logPaths":3,"name":"test-api-project","path":"E:\\Freelance\\LogVistaV2\\test-api-project"}],"scheduler":{"activeTasks":["metrics","logs","retry","serverInfo"],"isRunning":true,"taskCount":4},"service":"logvista-agent","timestamp":"2025-07-24T07:58:31.668Z"} {"level":"info","message":"Initializing LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:58:33.683Z"} {"level":"info","message":"Configuration loaded successfully","service":"logvista-agent","timestamp":"2025-07-24T07:58:33.697Z"} {"level":"error","message":"Connection test failed:","service":"logvista-agent","timestamp":"2025-07-24T07:58:33.739Z"} {"level":"warn","message":"Unable to connect to central system. Agent will continue and retry periodically.","service":"logvista-agent","timestamp":"2025-07-24T07:58:33.740Z"} {"level":"info","message":"LogVista Agent initialized successfully","service":"logvista-agent","timestamp":"2025-07-24T07:58:33.740Z"} {"level":"info","message":"Starting LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:58:33.740Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\app.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:58:33.744Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\error.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:58:33.746Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\access.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:58:33.747Z"} {"level":"info","message":"Started watching project logs in: E:\\Freelance\\LogVistaV2\\test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:58:33.749Z"} {"level":"info","message":"Starting LogVista Agent Scheduler","service":"logvista-agent","timestamp":"2025-07-24T07:58:33.751Z"} {"level":"info","message":"Started metrics task","service":"logvista-agent","timestamp":"2025-07-24T07:58:33.756Z"} {"level":"info","message":"Started logs task","service":"logvista-agent","timestamp":"2025-07-24T07:58:33.757Z"} {"level":"info","message":"Started retry task","service":"logvista-agent","timestamp":"2025-07-24T07:58:33.757Z"} {"level":"info","message":"Started serverInfo task","service":"logvista-agent","timestamp":"2025-07-24T07:58:33.757Z"} {"level":"info","message":"All scheduled tasks started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:58:33.758Z"} {"level":"info","message":"LogVista Agent started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:58:33.758Z"} {"config":{"batchSize":100,"centralUrl":"http://localhost:3001","collectionInterval":30},"isRunning":true,"level":"info","message":"Agent Status:","projects":[{"logPaths":3,"name":"test-api-project","path":"E:\\Freelance\\LogVistaV2\\test-api-project"}],"scheduler":{"activeTasks":["metrics","logs","retry","serverInfo"],"isRunning":true,"taskCount":4},"service":"logvista-agent","timestamp":"2025-07-24T07:58:33.759Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for server-info - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T07:58:40.925Z"} {"level":"info","message":"Saved server-info data offline: server-info-2025-07-24T07-58-40-927Z.json","service":"logvista-agent","timestamp":"2025-07-24T07:58:40.929Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:58:40.935Z"} {"level":"info","message":"Initializing LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:58:41.738Z"} {"level":"info","message":"Configuration loaded successfully","service":"logvista-agent","timestamp":"2025-07-24T07:58:41.751Z"} {"level":"error","message":"Connection test failed:","service":"logvista-agent","timestamp":"2025-07-24T07:58:41.813Z"} {"level":"warn","message":"Unable to connect to central system. Agent will continue and retry periodically.","service":"logvista-agent","timestamp":"2025-07-24T07:58:41.814Z"} {"level":"info","message":"LogVista Agent initialized successfully","service":"logvista-agent","timestamp":"2025-07-24T07:58:41.814Z"} {"level":"info","message":"Starting LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:58:41.815Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\app.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:58:41.819Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\error.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:58:41.822Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\access.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:58:41.824Z"} {"level":"info","message":"Started watching project logs in: E:\\Freelance\\LogVistaV2\\test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:58:41.826Z"} {"level":"info","message":"Starting LogVista Agent Scheduler","service":"logvista-agent","timestamp":"2025-07-24T07:58:41.826Z"} {"level":"info","message":"Started metrics task","service":"logvista-agent","timestamp":"2025-07-24T07:58:41.833Z"} {"level":"info","message":"Started logs task","service":"logvista-agent","timestamp":"2025-07-24T07:58:41.833Z"} {"level":"info","message":"Started retry task","service":"logvista-agent","timestamp":"2025-07-24T07:58:41.834Z"} {"level":"info","message":"Started serverInfo task","service":"logvista-agent","timestamp":"2025-07-24T07:58:41.834Z"} {"level":"info","message":"All scheduled tasks started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:58:41.835Z"} {"level":"info","message":"LogVista Agent started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:58:41.835Z"} {"config":{"batchSize":100,"centralUrl":"http://localhost:3001","collectionInterval":30},"isRunning":true,"level":"info","message":"Agent Status:","projects":[{"logPaths":3,"name":"test-api-project","path":"E:\\Freelance\\LogVistaV2\\test-api-project"}],"scheduler":{"activeTasks":["metrics","logs","retry","serverInfo"],"isRunning":true,"taskCount":4},"service":"logvista-agent","timestamp":"2025-07-24T07:58:41.836Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for server-info - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T07:58:42.135Z"} {"level":"info","message":"Saved server-info data offline: server-info-2025-07-24T07-58-42-137Z.json","service":"logvista-agent","timestamp":"2025-07-24T07:58:42.139Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:58:42.140Z"} {"level":"info","message":"Initializing LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:58:42.800Z"} {"level":"info","message":"Configuration loaded successfully","service":"logvista-agent","timestamp":"2025-07-24T07:58:42.810Z"} {"level":"error","message":"Connection test failed:","service":"logvista-agent","timestamp":"2025-07-24T07:58:42.858Z"} {"level":"warn","message":"Unable to connect to central system. Agent will continue and retry periodically.","service":"logvista-agent","timestamp":"2025-07-24T07:58:42.859Z"} {"level":"info","message":"LogVista Agent initialized successfully","service":"logvista-agent","timestamp":"2025-07-24T07:58:42.859Z"} {"level":"info","message":"Starting LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:58:42.860Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\app.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:58:42.862Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\error.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:58:42.864Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\access.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:58:42.866Z"} {"level":"info","message":"Started watching project logs in: E:\\Freelance\\LogVistaV2\\test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:58:42.867Z"} {"level":"info","message":"Starting LogVista Agent Scheduler","service":"logvista-agent","timestamp":"2025-07-24T07:58:42.868Z"} {"level":"info","message":"Started metrics task","service":"logvista-agent","timestamp":"2025-07-24T07:58:42.871Z"} {"level":"info","message":"Started logs task","service":"logvista-agent","timestamp":"2025-07-24T07:58:42.872Z"} {"level":"info","message":"Started retry task","service":"logvista-agent","timestamp":"2025-07-24T07:58:42.872Z"} {"level":"info","message":"Started serverInfo task","service":"logvista-agent","timestamp":"2025-07-24T07:58:42.873Z"} {"level":"info","message":"All scheduled tasks started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:58:42.873Z"} {"level":"info","message":"LogVista Agent started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:58:42.873Z"} {"config":{"batchSize":100,"centralUrl":"http://localhost:3001","collectionInterval":30},"isRunning":true,"level":"info","message":"Agent Status:","projects":[{"logPaths":3,"name":"test-api-project","path":"E:\\Freelance\\LogVistaV2\\test-api-project"}],"scheduler":{"activeTasks":["metrics","logs","retry","serverInfo"],"isRunning":true,"taskCount":4},"service":"logvista-agent","timestamp":"2025-07-24T07:58:42.873Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for server-info - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T07:58:43.153Z"} {"level":"info","message":"Saved server-info data offline: server-info-2025-07-24T07-58-43-154Z.json","service":"logvista-agent","timestamp":"2025-07-24T07:58:43.155Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:58:43.156Z"} {"level":"info","message":"Initializing LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:58:43.758Z"} {"level":"info","message":"Configuration loaded successfully","service":"logvista-agent","timestamp":"2025-07-24T07:58:43.770Z"} {"level":"error","message":"Connection test failed:","service":"logvista-agent","timestamp":"2025-07-24T07:58:43.816Z"} {"level":"warn","message":"Unable to connect to central system. Agent will continue and retry periodically.","service":"logvista-agent","timestamp":"2025-07-24T07:58:43.817Z"} {"level":"info","message":"LogVista Agent initialized successfully","service":"logvista-agent","timestamp":"2025-07-24T07:58:43.818Z"} {"level":"info","message":"Starting LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:58:43.818Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\app.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:58:43.820Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\error.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:58:43.822Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\access.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:58:43.824Z"} {"level":"info","message":"Started watching project logs in: E:\\Freelance\\LogVistaV2\\test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:58:43.825Z"} {"level":"info","message":"Starting LogVista Agent Scheduler","service":"logvista-agent","timestamp":"2025-07-24T07:58:43.825Z"} {"level":"info","message":"Started metrics task","service":"logvista-agent","timestamp":"2025-07-24T07:58:43.829Z"} {"level":"info","message":"Started logs task","service":"logvista-agent","timestamp":"2025-07-24T07:58:43.829Z"} {"level":"info","message":"Started retry task","service":"logvista-agent","timestamp":"2025-07-24T07:58:43.829Z"} {"level":"info","message":"Started serverInfo task","service":"logvista-agent","timestamp":"2025-07-24T07:58:43.829Z"} {"level":"info","message":"All scheduled tasks started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:58:43.830Z"} {"level":"info","message":"LogVista Agent started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:58:43.830Z"} {"config":{"batchSize":100,"centralUrl":"http://localhost:3001","collectionInterval":30},"isRunning":true,"level":"info","message":"Agent Status:","projects":[{"logPaths":3,"name":"test-api-project","path":"E:\\Freelance\\LogVistaV2\\test-api-project"}],"scheduler":{"activeTasks":["metrics","logs","retry","serverInfo"],"isRunning":true,"taskCount":4},"service":"logvista-agent","timestamp":"2025-07-24T07:58:43.831Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for server-info - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T07:58:45.171Z"} {"level":"info","message":"Saved server-info data offline: server-info-2025-07-24T07-58-45-172Z.json","service":"logvista-agent","timestamp":"2025-07-24T07:58:45.174Z"} {"cause":{"code":"ECONNREFUSED"},"code":"ECONNREFUSED","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"hostname\":\"DESKTOP-OQNP5BM\",\"platform\":\"win32\",\"architecture\":\"x64\",\"os\":{\"platform\":\"Windows\",\"distro\":\"Microsoft Windows 11 Pro\",\"release\":\"10.0.26100\",\"kernel\":\"10.0.26100\",\"arch\":\"x64\"},\"cpu\":{\"manufacturer\":\"Intel\",\"brand\":\"Core™ i5-8250U\",\"cores\":8,\"physicalCores\":4,\"speed\":1.6},\"system\":{\"manufacturer\":\"Acer\",\"model\":\"Aspire A515-51G\",\"version\":\"V2.02\",\"serial\":\"NXGWJSI00375106D9E3400\"},\"memory\":{\"total\":12754456576,\"free\":1461825536},\"uptime\":592577.875,\"loadavg\":[0,0,0],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:58:45.167Z\"},\"projects\":[{\"name\":\"test-api-project\",\"path\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\",\"logPaths\":[\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\error.log\",\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\"]}]}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"850","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/servers/register","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"errors":[{"address":"::1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"},{"address":"127.0.0.1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"}],"level":"error","message":"Error updating server information:","name":"AggregateError","request":{"_currentRequest":{"_closed":true,"_contentLength":850,"_defaultKeepAlive":true,"_ended":false,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/servers/register HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 850\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":"[Circular]","_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/servers/register","protocol":"http:","res":null,"reusedSocket":false,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"_currentUrl":"http://localhost:3001/api/servers/register","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"850","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/servers/register","pathname":"/api/servers/register","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[{"data":{"data":[123,34,104,111,115,116,110,97,109,101,34,58,34,68,69,83,75,84,79,80,45,79,81,78,80,53,66,77,34,44,34,112,108,97,116,102,111,114,109,34,58,34,119,105,110,51,50,34,44,34,97,114,99,104,105,116,101,99,116,117,114,101,34,58,34,120,54,52,34,44,34,111,115,34,58,123,34,112,108,97,116,102,111,114,109,34,58,34,87,105,110,100,111,119,115,34,44,34,100,105,115,116,114,111,34,58,34,77,105,99,114,111,115,111,102,116,32,87,105,110,100,111,119,115,32,49,49,32,80,114,111,34,44,34,114,101,108,101,97,115,101,34,58,34,49,48,46,48,46,50,54,49,48,48,34,44,34,107,101,114,110,101,108,34,58,34,49,48,46,48,46,50,54,49,48,48,34,44,34,97,114,99,104,34,58,34,120,54,52,34,125,44,34,99,112,117,34,58,123,34,109,97,110,117,102,97,99,116,117,114,101,114,34,58,34,73,110,116,101,108,34,44,34,98,114,97,110,100,34,58,34,67,111,114,101,226,132,162,32,105,53,45,56,50,53,48,85,34,44,34,99,111,114,101,115,34,58,56,44,34,112,104,121,115,105,99,97,108,67,111,114,101,115,34,58,52,44,34,115,112,101,101,100,34,58,49,46,54,125,44,34,115,121,115,116,101,109,34,58,123,34,109,97,110,117,102,97,99,116,117,114,101,114,34,58,34,65,99,101,114,34,44,34,109,111,100,101,108,34,58,34,65,115,112,105,114,101,32,65,53,49,53,45,53,49,71,34,44,34,118,101,114,115,105,111,110,34,58,34,86,50,46,48,50,34,44,34,115,101,114,105,97,108,34,58,34,78,88,71,87,74,83,73,48,48,51,55,53,49,48,54,68,57,69,51,52,48,48,34,125,44,34,109,101,109,111,114,121,34,58,123,34,116,111,116,97,108,34,58,49,50,55,53,52,52,53,54,53,55,54,44,34,102,114,101,101,34,58,49,52,54,49,56,50,53,53,51,54,125,44,34,117,112,116,105,109,101,34,58,53,57,50,53,55,55,46,56,55,53,44,34,108,111,97,100,97,118,103,34,58,91,48,44,48,44,48,93,44,34,97,103,101,110,116,34,58,123,34,118,101,114,115,105,111,110,34,58,34,49,46,48,46,48,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,55,58,53,56,58,52,53,46,49,54,55,90,34,125,44,34,112,114,111,106,101,99,116,115,34,58,91,123,34,110,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,112,97,116,104,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,108,111,103,80,97,116,104,115,34,58,91,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,112,112,46,108,111,103,34,44,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,101,114,114,111,114,46,108,111,103,34,44,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,99,99,101,115,115,46,108,111,103,34,93,125,93,125],"type":"Buffer"}}],"_requestBodyLength":850,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"service":"logvista-agent","stack":"AggregateError\n at AxiosError.from (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:899:14)\n at RedirectableRequest.handleRequestError (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3228:25)\n at RedirectableRequest.emit (node:events:519:35)\n at eventHandlers. (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\follow-redirects\\index.js:49:24)\n at ClientRequest.emit (node:events:507:28)\n at emitErrorEvent (node:_http_client:104:11)\n at Socket.socketErrorListener (node:_http_client:518:5)\n at Socket.emit (node:events:507:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadServerInfo (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:61:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.updateServerInfo (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:211:7)","timestamp":"2025-07-24T07:58:45.175Z"} {"level":"info","message":"Initializing LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:58:45.688Z"} {"level":"info","message":"Configuration loaded successfully","service":"logvista-agent","timestamp":"2025-07-24T07:58:45.697Z"} {"level":"error","message":"Connection test failed:","service":"logvista-agent","timestamp":"2025-07-24T07:58:45.739Z"} {"level":"warn","message":"Unable to connect to central system. Agent will continue and retry periodically.","service":"logvista-agent","timestamp":"2025-07-24T07:58:45.739Z"} {"level":"info","message":"LogVista Agent initialized successfully","service":"logvista-agent","timestamp":"2025-07-24T07:58:45.740Z"} {"level":"info","message":"Starting LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:58:45.740Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\app.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:58:45.743Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\error.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:58:45.745Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\access.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:58:45.746Z"} {"level":"info","message":"Started watching project logs in: E:\\Freelance\\LogVistaV2\\test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:58:45.747Z"} {"level":"info","message":"Starting LogVista Agent Scheduler","service":"logvista-agent","timestamp":"2025-07-24T07:58:45.748Z"} {"level":"info","message":"Started metrics task","service":"logvista-agent","timestamp":"2025-07-24T07:58:45.752Z"} {"level":"info","message":"Started logs task","service":"logvista-agent","timestamp":"2025-07-24T07:58:45.752Z"} {"level":"info","message":"Started retry task","service":"logvista-agent","timestamp":"2025-07-24T07:58:45.752Z"} {"level":"info","message":"Started serverInfo task","service":"logvista-agent","timestamp":"2025-07-24T07:58:45.753Z"} {"level":"info","message":"All scheduled tasks started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:58:45.753Z"} {"level":"info","message":"LogVista Agent started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:58:45.753Z"} {"config":{"batchSize":100,"centralUrl":"http://localhost:3001","collectionInterval":30},"isRunning":true,"level":"info","message":"Agent Status:","projects":[{"logPaths":3,"name":"test-api-project","path":"E:\\Freelance\\LogVistaV2\\test-api-project"}],"scheduler":{"activeTasks":["metrics","logs","retry","serverInfo"],"isRunning":true,"taskCount":4},"service":"logvista-agent","timestamp":"2025-07-24T07:58:45.754Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for server-info - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T07:58:53.225Z"} {"level":"info","message":"Saved server-info data offline: server-info-2025-07-24T07-58-53-226Z.json","service":"logvista-agent","timestamp":"2025-07-24T07:58:53.228Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:58:53.228Z"} {"level":"info","message":"Initializing LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:58:53.713Z"} {"level":"info","message":"Configuration loaded successfully","service":"logvista-agent","timestamp":"2025-07-24T07:58:53.722Z"} {"level":"error","message":"Connection test failed:","service":"logvista-agent","timestamp":"2025-07-24T07:58:53.768Z"} {"level":"warn","message":"Unable to connect to central system. Agent will continue and retry periodically.","service":"logvista-agent","timestamp":"2025-07-24T07:58:53.768Z"} {"level":"info","message":"LogVista Agent initialized successfully","service":"logvista-agent","timestamp":"2025-07-24T07:58:53.769Z"} {"level":"info","message":"Starting LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:58:53.769Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\app.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:58:53.772Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\error.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:58:53.774Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\access.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:58:53.775Z"} {"level":"info","message":"Started watching project logs in: E:\\Freelance\\LogVistaV2\\test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:58:53.776Z"} {"level":"info","message":"Starting LogVista Agent Scheduler","service":"logvista-agent","timestamp":"2025-07-24T07:58:53.777Z"} {"level":"info","message":"Started metrics task","service":"logvista-agent","timestamp":"2025-07-24T07:58:53.781Z"} {"level":"info","message":"Started logs task","service":"logvista-agent","timestamp":"2025-07-24T07:58:53.782Z"} {"level":"info","message":"Started retry task","service":"logvista-agent","timestamp":"2025-07-24T07:58:53.782Z"} {"level":"info","message":"Started serverInfo task","service":"logvista-agent","timestamp":"2025-07-24T07:58:53.783Z"} {"level":"info","message":"All scheduled tasks started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:58:53.783Z"} {"level":"info","message":"LogVista Agent started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:58:53.783Z"} {"config":{"batchSize":100,"centralUrl":"http://localhost:3001","collectionInterval":30},"isRunning":true,"level":"info","message":"Agent Status:","projects":[{"logPaths":3,"name":"test-api-project","path":"E:\\Freelance\\LogVistaV2\\test-api-project"}],"scheduler":{"activeTasks":["metrics","logs","retry","serverInfo"],"isRunning":true,"taskCount":4},"service":"logvista-agent","timestamp":"2025-07-24T07:58:53.784Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for server-info - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T07:59:02.082Z"} {"level":"info","message":"Saved server-info data offline: server-info-2025-07-24T07-59-02-084Z.json","service":"logvista-agent","timestamp":"2025-07-24T07:59:02.085Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:59:02.086Z"} {"level":"info","message":"Initializing LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:02.627Z"} {"level":"info","message":"Configuration loaded successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:02.639Z"} {"level":"error","message":"Connection test failed:","service":"logvista-agent","timestamp":"2025-07-24T07:59:02.686Z"} {"level":"warn","message":"Unable to connect to central system. Agent will continue and retry periodically.","service":"logvista-agent","timestamp":"2025-07-24T07:59:02.687Z"} {"level":"info","message":"LogVista Agent initialized successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:02.688Z"} {"level":"info","message":"Starting LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:02.688Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\app.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:02.691Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\error.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:02.694Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\access.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:02.695Z"} {"level":"info","message":"Started watching project logs in: E:\\Freelance\\LogVistaV2\\test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:02.696Z"} {"level":"info","message":"Starting LogVista Agent Scheduler","service":"logvista-agent","timestamp":"2025-07-24T07:59:02.697Z"} {"level":"info","message":"Started metrics task","service":"logvista-agent","timestamp":"2025-07-24T07:59:02.702Z"} {"level":"info","message":"Started logs task","service":"logvista-agent","timestamp":"2025-07-24T07:59:02.702Z"} {"level":"info","message":"Started retry task","service":"logvista-agent","timestamp":"2025-07-24T07:59:02.702Z"} {"level":"info","message":"Started serverInfo task","service":"logvista-agent","timestamp":"2025-07-24T07:59:02.703Z"} {"level":"info","message":"All scheduled tasks started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:02.703Z"} {"level":"info","message":"LogVista Agent started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:02.704Z"} {"config":{"batchSize":100,"centralUrl":"http://localhost:3001","collectionInterval":30},"isRunning":true,"level":"info","message":"Agent Status:","projects":[{"logPaths":3,"name":"test-api-project","path":"E:\\Freelance\\LogVistaV2\\test-api-project"}],"scheduler":{"activeTasks":["metrics","logs","retry","serverInfo"],"isRunning":true,"taskCount":4},"service":"logvista-agent","timestamp":"2025-07-24T07:59:02.704Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T07:59:10.665Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T07-59-10-726Z.json","service":"logvista-agent","timestamp":"2025-07-24T07:59:10.728Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:59:10.730Z"} {"level":"info","message":"Initializing LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:11.418Z"} {"level":"info","message":"Configuration loaded successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:11.431Z"} {"level":"error","message":"Connection test failed:","service":"logvista-agent","timestamp":"2025-07-24T07:59:11.476Z"} {"level":"warn","message":"Unable to connect to central system. Agent will continue and retry periodically.","service":"logvista-agent","timestamp":"2025-07-24T07:59:11.477Z"} {"level":"info","message":"LogVista Agent initialized successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:11.477Z"} {"level":"info","message":"Starting LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:11.477Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\app.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:11.480Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\error.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:11.482Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\access.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:11.484Z"} {"level":"info","message":"Started watching project logs in: E:\\Freelance\\LogVistaV2\\test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:11.485Z"} {"level":"info","message":"Starting LogVista Agent Scheduler","service":"logvista-agent","timestamp":"2025-07-24T07:59:11.485Z"} {"level":"info","message":"Started metrics task","service":"logvista-agent","timestamp":"2025-07-24T07:59:11.489Z"} {"level":"info","message":"Started logs task","service":"logvista-agent","timestamp":"2025-07-24T07:59:11.489Z"} {"level":"info","message":"Started retry task","service":"logvista-agent","timestamp":"2025-07-24T07:59:11.489Z"} {"level":"info","message":"Started serverInfo task","service":"logvista-agent","timestamp":"2025-07-24T07:59:11.489Z"} {"level":"info","message":"All scheduled tasks started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:11.490Z"} {"level":"info","message":"LogVista Agent started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:11.490Z"} {"config":{"batchSize":100,"centralUrl":"http://localhost:3001","collectionInterval":30},"isRunning":true,"level":"info","message":"Agent Status:","projects":[{"logPaths":3,"name":"test-api-project","path":"E:\\Freelance\\LogVistaV2\\test-api-project"}],"scheduler":{"activeTasks":["metrics","logs","retry","serverInfo"],"isRunning":true,"taskCount":4},"service":"logvista-agent","timestamp":"2025-07-24T07:59:11.491Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T07:59:11.734Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T07-59-11-735Z.json","service":"logvista-agent","timestamp":"2025-07-24T07:59:11.736Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:59:11.736Z"} {"level":"info","message":"Initializing LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:12.273Z"} {"level":"info","message":"Configuration loaded successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:12.285Z"} {"level":"error","message":"Connection test failed:","service":"logvista-agent","timestamp":"2025-07-24T07:59:12.339Z"} {"level":"warn","message":"Unable to connect to central system. Agent will continue and retry periodically.","service":"logvista-agent","timestamp":"2025-07-24T07:59:12.340Z"} {"level":"info","message":"LogVista Agent initialized successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:12.341Z"} {"level":"info","message":"Starting LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:12.341Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\app.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:12.344Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\error.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:12.347Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\access.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:12.348Z"} {"level":"info","message":"Started watching project logs in: E:\\Freelance\\LogVistaV2\\test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:12.349Z"} {"level":"info","message":"Starting LogVista Agent Scheduler","service":"logvista-agent","timestamp":"2025-07-24T07:59:12.350Z"} {"level":"info","message":"Started metrics task","service":"logvista-agent","timestamp":"2025-07-24T07:59:12.354Z"} {"level":"info","message":"Started logs task","service":"logvista-agent","timestamp":"2025-07-24T07:59:12.354Z"} {"level":"info","message":"Started retry task","service":"logvista-agent","timestamp":"2025-07-24T07:59:12.355Z"} {"level":"info","message":"Started serverInfo task","service":"logvista-agent","timestamp":"2025-07-24T07:59:12.355Z"} {"level":"info","message":"All scheduled tasks started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:12.355Z"} {"level":"info","message":"LogVista Agent started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:12.356Z"} {"config":{"batchSize":100,"centralUrl":"http://localhost:3001","collectionInterval":30},"isRunning":true,"level":"info","message":"Agent Status:","projects":[{"logPaths":3,"name":"test-api-project","path":"E:\\Freelance\\LogVistaV2\\test-api-project"}],"scheduler":{"activeTasks":["metrics","logs","retry","serverInfo"],"isRunning":true,"taskCount":4},"service":"logvista-agent","timestamp":"2025-07-24T07:59:12.356Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T07:59:13.749Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T07-59-13-750Z.json","service":"logvista-agent","timestamp":"2025-07-24T07:59:13.751Z"} {"cause":{"code":"ECONNREFUSED"},"code":"ECONNREFUSED","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T07:59:00.000Z\",\"level\":\"INFO\",\"message\":\"Starting scheduled API request\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"Starting scheduled API request\",\"requestId\":1753343940650,\"service\":\"test-api\",\"statusMessage\":\"Scheduled maintenance check\",\"targetUrl\":\"https://jsonplaceholder.typicode.com/posts/1\",\"timestamp\":\"2025-07-24 13:29:00\"}},{\"timestamp\":\"2025-07-24T07:59:00.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"11.24%\",\"disk\":\"55.82%\",\"level\":\"info\",\"memory\":\"95.60%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:29:00\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:59:00.000Z\",\"level\":\"WARN\",\"message\":\"High memory usage detected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"warn\",\"memory\":\"95.60%\",\"message\":\"High memory usage detected\",\"service\":\"test-api\",\"threshold\":\"85%\",\"timestamp\":\"2025-07-24 13:29:00\"}},{\"timestamp\":\"2025-07-24T07:59:00.000Z\",\"level\":\"INFO\",\"message\":\"Starting scheduled API request\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"Starting scheduled API request\",\"requestId\":1753343940650,\"service\":\"test-api\",\"statusMessage\":\"Scheduled maintenance check\",\"targetUrl\":\"https://jsonplaceholder.typicode.com/posts/1\",\"timestamp\":\"2025-07-24 13:29:00\"}},{\"timestamp\":\"2025-07-24T07:59:00.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"11.24%\",\"disk\":\"55.82%\",\"level\":\"info\",\"memory\":\"95.60%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:29:00\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:59:00.000Z\",\"level\":\"WARN\",\"message\":\"High memory usage detected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"warn\",\"memory\":\"95.60%\",\"message\":\"High memory usage detected\",\"service\":\"test-api\",\"threshold\":\"85%\",\"timestamp\":\"2025-07-24 13:29:00\"}},{\"timestamp\":\"2025-07-24T07:59:01.000Z\",\"level\":\"INFO\",\"message\":\"API request successful\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"dataSize\":275,\"level\":\"info\",\"message\":\"API request successful\",\"requestId\":1753343940650,\"responseTime\":\"507ms\",\"service\":\"test-api\",\"status\":\"Scheduled maintenance check\",\"statusCode\":200,\"timestamp\":\"2025-07-24 13:29:01\",\"url\":\"https://jsonplaceholder.typicode.com/posts/1\"}},{\"timestamp\":\"2025-07-24T07:59:01.000Z\",\"level\":\"INFO\",\"message\":\"API request successful\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"dataSize\":275,\"level\":\"info\",\"message\":\"API request successful\",\"requestId\":1753343940650,\"responseTime\":\"507ms\",\"service\":\"test-api\",\"status\":\"Scheduled maintenance check\",\"statusCode\":200,\"timestamp\":\"2025-07-24 13:29:01\",\"url\":\"https://jsonplaceholder.typicode.com/posts/1\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:59:13.745Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"3467","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"errors":[{"address":"::1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"},{"address":"127.0.0.1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"}],"level":"error","message":"Error in log upload:","name":"AggregateError","request":{"_currentRequest":{"_closed":true,"_contentLength":3467,"_defaultKeepAlive":true,"_ended":false,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 3467\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":"[Circular]","_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":null,"reusedSocket":false,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"3467","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[{"data":{"data":[123,34,108,111,103,115,34,58,91,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,55,58,53,57,58,48,48,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,83,116,97,114,116,105,110,103,32,115,99,104,101,100,117,108,101,100,32,65,80,73,32,114,101,113,117,101,115,116,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,112,112,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,115,115,97,103,101,34,58,34,83,116,97,114,116,105,110,103,32,115,99,104,101,100,117,108,101,100,32,65,80,73,32,114,101,113,117,101,115,116,34,44,34,114,101,113,117,101,115,116,73,100,34,58,49,55,53,51,51,52,51,57,52,48,54,53,48,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,115,116,97,116,117,115,77,101,115,115,97,103,101,34,58,34,83,99,104,101,100,117,108,101,100,32,109,97,105,110,116,101,110,97,110,99,101,32,99,104,101,99,107,34,44,34,116,97,114,103,101,116,85,114,108,34,58,34,104,116,116,112,115,58,47,47,106,115,111,110,112,108,97,99,101,104,111,108,100,101,114,46,116,121,112,105,99,111,100,101,46,99,111,109,47,112,111,115,116,115,47,49,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,50,57,58,48,48,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,55,58,53,57,58,48,48,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,83,121,115,116,101,109,32,109,101,116,114,105,99,115,32,99,111,108,108,101,99,116,101,100,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,112,112,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,99,112,117,34,58,34,49,49,46,50,52,37,34,44,34,100,105,115,107,34,58,34,53,53,46,56,50,37,34,44,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,109,111,114,121,34,58,34,57,53,46,54,48,37,34,44,34,109,101,115,115,97,103,101,34,58,34,83,121,115,116,101,109,32,109,101,116,114,105,99,115,32,99,111,108,108,101,99,116,101,100,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,50,57,58,48,48,34,44,34,116,121,112,101,34,58,34,115,121,115,116,101,109,95,109,101,116,114,105,99,115,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,55,58,53,57,58,48,48,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,87,65,82,78,34,44,34,109,101,115,115,97,103,101,34,58,34,72,105,103,104,32,109,101,109,111,114,121,32,117,115,97,103,101,32,100,101,116,101,99,116,101,100,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,112,112,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,108,101,118,101,108,34,58,34,119,97,114,110,34,44,34,109,101,109,111,114,121,34,58,34,57,53,46,54,48,37,34,44,34,109,101,115,115,97,103,101,34,58,34,72,105,103,104,32,109,101,109,111,114,121,32,117,115,97,103,101,32,100,101,116,101,99,116,101,100,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,116,104,114,101,115,104,111,108,100,34,58,34,56,53,37,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,50,57,58,48,48,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,55,58,53,57,58,48,48,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,83,116,97,114,116,105,110,103,32,115,99,104,101,100,117,108,101,100,32,65,80,73,32,114,101,113,117,101,115,116,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,99,99,101,115,115,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,115,115,97,103,101,34,58,34,83,116,97,114,116,105,110,103,32,115,99,104,101,100,117,108,101,100,32,65,80,73,32,114,101,113,117,101,115,116,34,44,34,114,101,113,117,101,115,116,73,100,34,58,49,55,53,51,51,52,51,57,52,48,54,53,48,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,115,116,97,116,117,115,77,101,115,115,97,103,101,34,58,34,83,99,104,101,100,117,108,101,100,32,109,97,105,110,116,101,110,97,110,99,101,32,99,104,101,99,107,34,44,34,116,97,114,103,101,116,85,114,108,34,58,34,104,116,116,112,115,58,47,47,106,115,111,110,112,108,97,99,101,104,111,108,100,101,114,46,116,121,112,105,99,111,100,101,46,99,111,109,47,112,111,115,116,115,47,49,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,50,57,58,48,48,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,55,58,53,57,58,48,48,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,83,121,115,116,101,109,32,109,101,116,114,105,99,115,32,99,111,108,108,101,99,116,101,100,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,99,99,101,115,115,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,99,112,117,34,58,34,49,49,46,50,52,37,34,44,34,100,105,115,107,34,58,34,53,53,46,56,50,37,34,44,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,109,111,114,121,34,58,34,57,53,46,54,48,37,34,44,34,109,101,115,115,97,103,101,34,58,34,83,121,115,116,101,109,32,109,101,116,114,105,99,115,32,99,111,108,108,101,99,116,101,100,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,50,57,58,48,48,34,44,34,116,121,112,101,34,58,34,115,121,115,116,101,109,95,109,101,116,114,105,99,115,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,55,58,53,57,58,48,48,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,87,65,82,78,34,44,34,109,101,115,115,97,103,101,34,58,34,72,105,103,104,32,109,101,109,111,114,121,32,117,115,97,103,101,32,100,101,116,101,99,116,101,100,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,99,99,101,115,115,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,108,101,118,101,108,34,58,34,119,97,114,110,34,44,34,109,101,109,111,114,121,34,58,34,57,53,46,54,48,37,34,44,34,109,101,115,115,97,103,101,34,58,34,72,105,103,104,32,109,101,109,111,114,121,32,117,115,97,103,101,32,100,101,116,101,99,116,101,100,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,116,104,114,101,115,104,111,108,100,34,58,34,56,53,37,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,50,57,58,48,48,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,55,58,53,57,58,48,49,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,65,80,73,32,114,101,113,117,101,115,116,32,115,117,99,99,101,115,115,102,117,108,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,112,112,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,100,97,116,97,83,105,122,101,34,58,50,55,53,44,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,115,115,97,103,101,34,58,34,65,80,73,32,114,101,113,117,101,115,116,32,115,117,99,99,101,115,115,102,117,108,34,44,34,114,101,113,117,101,115,116,73,100,34,58,49,55,53,51,51,52,51,57,52,48,54,53,48,44,34,114,101,115,112,111,110,115,101,84,105,109,101,34,58,34,53,48,55,109,115,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,115,116,97,116,117,115,34,58,34,83,99,104,101,100,117,108,101,100,32,109,97,105,110,116,101,110,97,110,99,101,32,99,104,101,99,107,34,44,34,115,116,97,116,117,115,67,111,100,101,34,58,50,48,48,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,50,57,58,48,49,34,44,34,117,114,108,34,58,34,104,116,116,112,115,58,47,47,106,115,111,110,112,108,97,99,101,104,111,108,100,101,114,46,116,121,112,105,99,111,100,101,46,99,111,109,47,112,111,115,116,115,47,49,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,55,58,53,57,58,48,49,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,65,80,73,32,114,101,113,117,101,115,116,32,115,117,99,99,101,115,115,102,117,108,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,99,99,101,115,115,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,100,97,116,97,83,105,122,101,34,58,50,55,53,44,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,115,115,97,103,101,34,58,34,65,80,73,32,114,101,113,117,101,115,116,32,115,117,99,99,101,115,115,102,117,108,34,44,34,114,101,113,117,101,115,116,73,100,34,58,49,55,53,51,51,52,51,57,52,48,54,53,48,44,34,114,101,115,112,111,110,115,101,84,105,109,101,34,58,34,53,48,55,109,115,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,115,116,97,116,117,115,34,58,34,83,99,104,101,100,117,108,101,100,32,109,97,105,110,116,101,110,97,110,99,101,32,99,104,101,99,107,34,44,34,115,116,97,116,117,115,67,111,100,101,34,58,50,48,48,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,50,57,58,48,49,34,44,34,117,114,108,34,58,34,104,116,116,112,115,58,47,47,106,115,111,110,112,108,97,99,101,104,111,108,100,101,114,46,116,121,112,105,99,111,100,101,46,99,111,109,47,112,111,115,116,115,47,49,34,125,125,93,44,34,97,103,101,110,116,34,58,123,34,118,101,114,115,105,111,110,34,58,34,49,46,48,46,48,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,55,58,53,57,58,49,51,46,55,52,53,90,34,125,125],"type":"Buffer"}}],"_requestBodyLength":3467,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"service":"logvista-agent","stack":"AggregateError\n at AxiosError.from (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:899:14)\n at RedirectableRequest.handleRequestError (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3228:25)\n at RedirectableRequest.emit (node:events:519:35)\n at eventHandlers. (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\follow-redirects\\index.js:49:24)\n at ClientRequest.emit (node:events:507:28)\n at emitErrorEvent (node:_http_client:104:11)\n at Socket.socketErrorListener (node:_http_client:518:5)\n at Socket.emit (node:events:507:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:42:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:138:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:37:7)","timestamp":"2025-07-24T07:59:13.751Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for metrics - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T07:59:14.150Z"} {"level":"info","message":"Saved metrics data offline: metrics-2025-07-24T07-59-14-151Z.json","service":"logvista-agent","timestamp":"2025-07-24T07:59:14.152Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:59:14.153Z"} {"level":"info","message":"Initializing LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:14.733Z"} {"level":"info","message":"Configuration loaded successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:14.744Z"} {"level":"error","message":"Connection test failed:","service":"logvista-agent","timestamp":"2025-07-24T07:59:14.794Z"} {"level":"warn","message":"Unable to connect to central system. Agent will continue and retry periodically.","service":"logvista-agent","timestamp":"2025-07-24T07:59:14.794Z"} {"level":"info","message":"LogVista Agent initialized successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:14.795Z"} {"level":"info","message":"Starting LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:14.795Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\app.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:14.799Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\error.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:14.801Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\access.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:14.802Z"} {"level":"info","message":"Started watching project logs in: E:\\Freelance\\LogVistaV2\\test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:14.804Z"} {"level":"info","message":"Starting LogVista Agent Scheduler","service":"logvista-agent","timestamp":"2025-07-24T07:59:14.804Z"} {"level":"info","message":"Started metrics task","service":"logvista-agent","timestamp":"2025-07-24T07:59:14.808Z"} {"level":"info","message":"Started logs task","service":"logvista-agent","timestamp":"2025-07-24T07:59:14.808Z"} {"level":"info","message":"Started retry task","service":"logvista-agent","timestamp":"2025-07-24T07:59:14.809Z"} {"level":"info","message":"Started serverInfo task","service":"logvista-agent","timestamp":"2025-07-24T07:59:14.809Z"} {"level":"info","message":"All scheduled tasks started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:14.809Z"} {"level":"info","message":"LogVista Agent started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:14.810Z"} {"config":{"batchSize":100,"centralUrl":"http://localhost:3001","collectionInterval":30},"isRunning":true,"level":"info","message":"Agent Status:","projects":[{"logPaths":3,"name":"test-api-project","path":"E:\\Freelance\\LogVistaV2\\test-api-project"}],"scheduler":{"activeTasks":["metrics","logs","retry","serverInfo"],"isRunning":true,"taskCount":4},"service":"logvista-agent","timestamp":"2025-07-24T07:59:14.810Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for metrics - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T07:59:15.169Z"} {"level":"info","message":"Saved metrics data offline: metrics-2025-07-24T07-59-15-171Z.json","service":"logvista-agent","timestamp":"2025-07-24T07:59:15.173Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:59:15.175Z"} {"level":"info","message":"Initializing LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:15.783Z"} {"level":"info","message":"Configuration loaded successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:15.798Z"} {"level":"error","message":"Connection test failed:","service":"logvista-agent","timestamp":"2025-07-24T07:59:15.841Z"} {"level":"warn","message":"Unable to connect to central system. Agent will continue and retry periodically.","service":"logvista-agent","timestamp":"2025-07-24T07:59:15.842Z"} {"level":"info","message":"LogVista Agent initialized successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:15.842Z"} {"level":"info","message":"Starting LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:15.843Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\app.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:15.846Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\error.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:15.848Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\access.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:15.849Z"} {"level":"info","message":"Started watching project logs in: E:\\Freelance\\LogVistaV2\\test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:15.851Z"} {"level":"info","message":"Starting LogVista Agent Scheduler","service":"logvista-agent","timestamp":"2025-07-24T07:59:15.851Z"} {"level":"info","message":"Started metrics task","service":"logvista-agent","timestamp":"2025-07-24T07:59:15.855Z"} {"level":"info","message":"Started logs task","service":"logvista-agent","timestamp":"2025-07-24T07:59:15.855Z"} {"level":"info","message":"Started retry task","service":"logvista-agent","timestamp":"2025-07-24T07:59:15.856Z"} {"level":"info","message":"Started serverInfo task","service":"logvista-agent","timestamp":"2025-07-24T07:59:15.856Z"} {"level":"info","message":"All scheduled tasks started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:15.857Z"} {"level":"info","message":"LogVista Agent started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:15.857Z"} {"config":{"batchSize":100,"centralUrl":"http://localhost:3001","collectionInterval":30},"isRunning":true,"level":"info","message":"Agent Status:","projects":[{"logPaths":3,"name":"test-api-project","path":"E:\\Freelance\\LogVistaV2\\test-api-project"}],"scheduler":{"activeTasks":["metrics","logs","retry","serverInfo"],"isRunning":true,"taskCount":4},"service":"logvista-agent","timestamp":"2025-07-24T07:59:15.857Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for metrics - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T07:59:17.186Z"} {"level":"info","message":"Saved metrics data offline: metrics-2025-07-24T07-59-17-187Z.json","service":"logvista-agent","timestamp":"2025-07-24T07:59:17.189Z"} {"cause":{"code":"ECONNREFUSED"},"code":"ECONNREFUSED","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"metrics\":[{\"type\":\"system\",\"cpuUsage\":29.117716069521336,\"ramUsage\":10794.3671875,\"ramTotal\":12163.59765625,\"diskUsage\":455181.3125,\"diskTotal\":1441429.3046875,\"processCount\":293,\"loadAverage\":0,\"timestamp\":\"2025-07-24T07:59:07.643Z\"},{\"type\":\"project\",\"projectName\":\"test-api-project\",\"timestamp\":\"2025-07-24T07:59:07.643Z\",\"projectDiskUsage\":7.475707054138184}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:59:17.181Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"433","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/metrics","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"errors":[{"address":"::1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"},{"address":"127.0.0.1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"}],"level":"error","message":"Error in metrics collection and upload:","name":"AggregateError","request":{"_currentRequest":{"_closed":true,"_contentLength":433,"_defaultKeepAlive":true,"_ended":false,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/metrics HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 433\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":"[Circular]","_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/metrics","protocol":"http:","res":null,"reusedSocket":false,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"_currentUrl":"http://localhost:3001/api/metrics","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"433","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/metrics","pathname":"/api/metrics","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[{"data":{"data":[123,34,109,101,116,114,105,99,115,34,58,91,123,34,116,121,112,101,34,58,34,115,121,115,116,101,109,34,44,34,99,112,117,85,115,97,103,101,34,58,50,57,46,49,49,55,55,49,54,48,54,57,53,50,49,51,51,54,44,34,114,97,109,85,115,97,103,101,34,58,49,48,55,57,52,46,51,54,55,49,56,55,53,44,34,114,97,109,84,111,116,97,108,34,58,49,50,49,54,51,46,53,57,55,54,53,54,50,53,44,34,100,105,115,107,85,115,97,103,101,34,58,52,53,53,49,56,49,46,51,49,50,53,44,34,100,105,115,107,84,111,116,97,108,34,58,49,52,52,49,52,50,57,46,51,48,52,54,56,55,53,44,34,112,114,111,99,101,115,115,67,111,117,110,116,34,58,50,57,51,44,34,108,111,97,100,65,118,101,114,97,103,101,34,58,48,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,55,58,53,57,58,48,55,46,54,52,51,90,34,125,44,123,34,116,121,112,101,34,58,34,112,114,111,106,101,99,116,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,55,58,53,57,58,48,55,46,54,52,51,90,34,44,34,112,114,111,106,101,99,116,68,105,115,107,85,115,97,103,101,34,58,55,46,52,55,53,55,48,55,48,53,52,49,51,56,49,56,52,125,93,44,34,97,103,101,110,116,34,58,123,34,118,101,114,115,105,111,110,34,58,34,49,46,48,46,48,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,55,58,53,57,58,49,55,46,49,56,49,90,34,125,125],"type":"Buffer"}}],"_requestBodyLength":433,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"service":"logvista-agent","stack":"AggregateError\n at AxiosError.from (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:899:14)\n at RedirectableRequest.handleRequestError (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3228:25)\n at RedirectableRequest.emit (node:events:519:35)\n at eventHandlers. (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\follow-redirects\\index.js:49:24)\n at ClientRequest.emit (node:events:507:28)\n at emitErrorEvent (node:_http_client:104:11)\n at Socket.socketErrorListener (node:_http_client:518:5)\n at Socket.emit (node:events:507:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:21:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.collectAndUploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:124:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:28:7)","timestamp":"2025-07-24T07:59:17.190Z"} {"level":"info","message":"Initializing LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:17.834Z"} {"level":"info","message":"Configuration loaded successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:17.845Z"} {"level":"error","message":"Connection test failed:","service":"logvista-agent","timestamp":"2025-07-24T07:59:17.894Z"} {"level":"warn","message":"Unable to connect to central system. Agent will continue and retry periodically.","service":"logvista-agent","timestamp":"2025-07-24T07:59:17.894Z"} {"level":"info","message":"LogVista Agent initialized successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:17.895Z"} {"level":"info","message":"Starting LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:17.895Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\app.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:17.898Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\error.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:17.900Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\access.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:17.902Z"} {"level":"info","message":"Started watching project logs in: E:\\Freelance\\LogVistaV2\\test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:17.903Z"} {"level":"info","message":"Starting LogVista Agent Scheduler","service":"logvista-agent","timestamp":"2025-07-24T07:59:17.904Z"} {"level":"info","message":"Started metrics task","service":"logvista-agent","timestamp":"2025-07-24T07:59:17.908Z"} {"level":"info","message":"Started logs task","service":"logvista-agent","timestamp":"2025-07-24T07:59:17.908Z"} {"level":"info","message":"Started retry task","service":"logvista-agent","timestamp":"2025-07-24T07:59:17.909Z"} {"level":"info","message":"Started serverInfo task","service":"logvista-agent","timestamp":"2025-07-24T07:59:17.909Z"} {"level":"info","message":"All scheduled tasks started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:17.909Z"} {"level":"info","message":"LogVista Agent started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:17.910Z"} {"config":{"batchSize":100,"centralUrl":"http://localhost:3001","collectionInterval":30},"isRunning":true,"level":"info","message":"Agent Status:","projects":[{"logPaths":3,"name":"test-api-project","path":"E:\\Freelance\\LogVistaV2\\test-api-project"}],"scheduler":{"activeTasks":["metrics","logs","retry","serverInfo"],"isRunning":true,"taskCount":4},"service":"logvista-agent","timestamp":"2025-07-24T07:59:17.910Z"} {"level":"info","message":"Received SIGINT, shutting down gracefully...","service":"logvista-agent","timestamp":"2025-07-24T07:59:23.444Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for server-info - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T07:59:26.139Z"} {"level":"info","message":"Saved server-info data offline: server-info-2025-07-24T07-59-26-140Z.json","service":"logvista-agent","timestamp":"2025-07-24T07:59:26.142Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:59:26.142Z"} {"level":"info","message":"Initializing LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:26.667Z"} {"level":"info","message":"Configuration loaded successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:26.677Z"} {"level":"error","message":"Connection test failed:","service":"logvista-agent","timestamp":"2025-07-24T07:59:26.726Z"} {"level":"warn","message":"Unable to connect to central system. Agent will continue and retry periodically.","service":"logvista-agent","timestamp":"2025-07-24T07:59:26.727Z"} {"level":"info","message":"LogVista Agent initialized successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:26.727Z"} {"level":"info","message":"Starting LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:26.728Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\app.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:26.731Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\error.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:26.734Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\access.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:26.735Z"} {"level":"info","message":"Started watching project logs in: E:\\Freelance\\LogVistaV2\\test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:26.736Z"} {"level":"info","message":"Starting LogVista Agent Scheduler","service":"logvista-agent","timestamp":"2025-07-24T07:59:26.736Z"} {"level":"info","message":"Started metrics task","service":"logvista-agent","timestamp":"2025-07-24T07:59:26.740Z"} {"level":"info","message":"Started logs task","service":"logvista-agent","timestamp":"2025-07-24T07:59:26.741Z"} {"level":"info","message":"Started retry task","service":"logvista-agent","timestamp":"2025-07-24T07:59:26.741Z"} {"level":"info","message":"Started serverInfo task","service":"logvista-agent","timestamp":"2025-07-24T07:59:26.741Z"} {"level":"info","message":"All scheduled tasks started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:26.742Z"} {"level":"info","message":"LogVista Agent started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:26.742Z"} {"config":{"batchSize":100,"centralUrl":"http://localhost:3001","collectionInterval":30},"isRunning":true,"level":"info","message":"Agent Status:","projects":[{"logPaths":3,"name":"test-api-project","path":"E:\\Freelance\\LogVistaV2\\test-api-project"}],"scheduler":{"activeTasks":["metrics","logs","retry","serverInfo"],"isRunning":true,"taskCount":4},"service":"logvista-agent","timestamp":"2025-07-24T07:59:26.742Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for server-info - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T07:59:34.995Z"} {"level":"info","message":"Saved server-info data offline: server-info-2025-07-24T07-59-34-996Z.json","service":"logvista-agent","timestamp":"2025-07-24T07:59:34.998Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:59:34.998Z"} {"level":"info","message":"Initializing LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:35.498Z"} {"level":"info","message":"Configuration loaded successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:35.506Z"} {"level":"error","message":"Connection test failed:","service":"logvista-agent","timestamp":"2025-07-24T07:59:35.544Z"} {"level":"warn","message":"Unable to connect to central system. Agent will continue and retry periodically.","service":"logvista-agent","timestamp":"2025-07-24T07:59:35.545Z"} {"level":"info","message":"LogVista Agent initialized successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:35.546Z"} {"level":"info","message":"Starting LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:35.546Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\app.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:35.552Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\error.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:35.554Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\access.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:35.555Z"} {"level":"info","message":"Started watching project logs in: E:\\Freelance\\LogVistaV2\\test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:35.557Z"} {"level":"info","message":"Starting LogVista Agent Scheduler","service":"logvista-agent","timestamp":"2025-07-24T07:59:35.557Z"} {"level":"info","message":"Started metrics task","service":"logvista-agent","timestamp":"2025-07-24T07:59:35.562Z"} {"level":"info","message":"Started logs task","service":"logvista-agent","timestamp":"2025-07-24T07:59:35.563Z"} {"level":"info","message":"Started retry task","service":"logvista-agent","timestamp":"2025-07-24T07:59:35.563Z"} {"level":"info","message":"Started serverInfo task","service":"logvista-agent","timestamp":"2025-07-24T07:59:35.564Z"} {"level":"info","message":"All scheduled tasks started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:35.564Z"} {"level":"info","message":"LogVista Agent started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:35.564Z"} {"config":{"batchSize":100,"centralUrl":"http://localhost:3001","collectionInterval":30},"isRunning":true,"level":"info","message":"Agent Status:","projects":[{"logPaths":3,"name":"test-api-project","path":"E:\\Freelance\\LogVistaV2\\test-api-project"}],"scheduler":{"activeTasks":["metrics","logs","retry","serverInfo"],"isRunning":true,"taskCount":4},"service":"logvista-agent","timestamp":"2025-07-24T07:59:35.565Z"} {"level":"info","message":"Initializing LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:38.611Z"} {"level":"info","message":"Configuration loaded successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:38.620Z"} {"level":"error","message":"Connection test failed:","service":"logvista-agent","timestamp":"2025-07-24T07:59:38.670Z"} {"level":"warn","message":"Unable to connect to central system. Agent will continue and retry periodically.","service":"logvista-agent","timestamp":"2025-07-24T07:59:38.671Z"} {"level":"info","message":"LogVista Agent initialized successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:38.672Z"} {"level":"info","message":"Starting LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:38.672Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\app.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:38.675Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\error.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:38.676Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\access.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:38.677Z"} {"level":"info","message":"Started watching project logs in: E:\\Freelance\\LogVistaV2\\test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:38.679Z"} {"level":"info","message":"Starting LogVista Agent Scheduler","service":"logvista-agent","timestamp":"2025-07-24T07:59:38.680Z"} {"level":"info","message":"Started metrics task","service":"logvista-agent","timestamp":"2025-07-24T07:59:38.684Z"} {"level":"info","message":"Started logs task","service":"logvista-agent","timestamp":"2025-07-24T07:59:38.685Z"} {"level":"info","message":"Started retry task","service":"logvista-agent","timestamp":"2025-07-24T07:59:38.685Z"} {"level":"info","message":"Started serverInfo task","service":"logvista-agent","timestamp":"2025-07-24T07:59:38.685Z"} {"level":"info","message":"All scheduled tasks started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:38.685Z"} {"level":"info","message":"LogVista Agent started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:38.686Z"} {"config":{"batchSize":100,"centralUrl":"http://localhost:3001","collectionInterval":30},"isRunning":true,"level":"info","message":"Agent Status:","projects":[{"logPaths":3,"name":"test-api-project","path":"E:\\Freelance\\LogVistaV2\\test-api-project"}],"scheduler":{"activeTasks":["metrics","logs","retry","serverInfo"],"isRunning":true,"taskCount":4},"service":"logvista-agent","timestamp":"2025-07-24T07:59:38.686Z"} {"level":"info","message":"Received SIGINT, shutting down gracefully...","service":"logvista-agent","timestamp":"2025-07-24T07:59:40.338Z"} {"level":"info","message":"Initializing LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:43.275Z"} {"level":"info","message":"Configuration loaded successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:43.286Z"} {"level":"error","message":"Connection test failed:","service":"logvista-agent","timestamp":"2025-07-24T07:59:43.347Z"} {"level":"warn","message":"Unable to connect to central system. Agent will continue and retry periodically.","service":"logvista-agent","timestamp":"2025-07-24T07:59:43.348Z"} {"level":"info","message":"LogVista Agent initialized successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:43.349Z"} {"level":"info","message":"Starting LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:43.349Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\app.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:43.353Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\error.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:43.356Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\access.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:43.358Z"} {"level":"info","message":"Started watching project logs in: E:\\Freelance\\LogVistaV2\\test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:43.359Z"} {"level":"info","message":"Starting LogVista Agent Scheduler","service":"logvista-agent","timestamp":"2025-07-24T07:59:43.360Z"} {"level":"info","message":"Started metrics task","service":"logvista-agent","timestamp":"2025-07-24T07:59:43.365Z"} {"level":"info","message":"Started logs task","service":"logvista-agent","timestamp":"2025-07-24T07:59:43.366Z"} {"level":"info","message":"Started retry task","service":"logvista-agent","timestamp":"2025-07-24T07:59:43.366Z"} {"level":"info","message":"Started serverInfo task","service":"logvista-agent","timestamp":"2025-07-24T07:59:43.366Z"} {"level":"info","message":"All scheduled tasks started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:43.367Z"} {"level":"info","message":"LogVista Agent started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:43.367Z"} {"config":{"batchSize":100,"centralUrl":"http://localhost:3001","collectionInterval":30},"isRunning":true,"level":"info","message":"Agent Status:","projects":[{"logPaths":3,"name":"test-api-project","path":"E:\\Freelance\\LogVistaV2\\test-api-project"}],"scheduler":{"activeTasks":["metrics","logs","retry","serverInfo"],"isRunning":true,"taskCount":4},"service":"logvista-agent","timestamp":"2025-07-24T07:59:43.368Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for server-info - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T07:59:43.477Z"} {"level":"info","message":"Saved server-info data offline: server-info-2025-07-24T07-59-43-478Z.json","service":"logvista-agent","timestamp":"2025-07-24T07:59:43.480Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:59:43.480Z"} {"level":"info","message":"Initializing LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:44.053Z"} {"level":"info","message":"Configuration loaded successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:44.065Z"} {"level":"error","message":"Connection test failed:","service":"logvista-agent","timestamp":"2025-07-24T07:59:44.110Z"} {"level":"warn","message":"Unable to connect to central system. Agent will continue and retry periodically.","service":"logvista-agent","timestamp":"2025-07-24T07:59:44.111Z"} {"level":"info","message":"LogVista Agent initialized successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:44.111Z"} {"level":"info","message":"Starting LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:44.112Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\app.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:44.116Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\error.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:44.119Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\access.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:44.120Z"} {"level":"info","message":"Started watching project logs in: E:\\Freelance\\LogVistaV2\\test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:44.120Z"} {"level":"info","message":"Starting LogVista Agent Scheduler","service":"logvista-agent","timestamp":"2025-07-24T07:59:44.121Z"} {"level":"info","message":"Started metrics task","service":"logvista-agent","timestamp":"2025-07-24T07:59:44.124Z"} {"level":"info","message":"Started logs task","service":"logvista-agent","timestamp":"2025-07-24T07:59:44.125Z"} {"level":"info","message":"Started retry task","service":"logvista-agent","timestamp":"2025-07-24T07:59:44.125Z"} {"level":"info","message":"Started serverInfo task","service":"logvista-agent","timestamp":"2025-07-24T07:59:44.126Z"} {"level":"info","message":"All scheduled tasks started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:44.126Z"} {"level":"info","message":"LogVista Agent started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:44.126Z"} {"config":{"batchSize":100,"centralUrl":"http://localhost:3001","collectionInterval":30},"isRunning":true,"level":"info","message":"Agent Status:","projects":[{"logPaths":3,"name":"test-api-project","path":"E:\\Freelance\\LogVistaV2\\test-api-project"}],"scheduler":{"activeTasks":["metrics","logs","retry","serverInfo"],"isRunning":true,"taskCount":4},"service":"logvista-agent","timestamp":"2025-07-24T07:59:44.127Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T07:59:50.587Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T07:59:50.640Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T07-59-50-655Z.json","service":"logvista-agent","timestamp":"2025-07-24T07:59:50.658Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:59:50.687Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T07-59-50-674Z.json","service":"logvista-agent","timestamp":"2025-07-24T07:59:50.790Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:59:50.887Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T07:59:51.804Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T07:59:51.965Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T07-59-51-866Z.json","service":"logvista-agent","timestamp":"2025-07-24T07:59:51.967Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:59:52.120Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T07-59-52-267Z.json","service":"logvista-agent","timestamp":"2025-07-24T07:59:52.334Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:59:52.351Z"} {"level":"info","message":"Initializing LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:53.206Z"} {"level":"info","message":"Configuration loaded successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:53.223Z"} {"level":"error","message":"Connection test failed:","service":"logvista-agent","timestamp":"2025-07-24T07:59:53.291Z"} {"level":"warn","message":"Unable to connect to central system. Agent will continue and retry periodically.","service":"logvista-agent","timestamp":"2025-07-24T07:59:53.292Z"} {"level":"info","message":"LogVista Agent initialized successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:53.293Z"} {"level":"info","message":"Starting LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:53.295Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\app.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:53.300Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\error.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:53.304Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\access.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:53.305Z"} {"level":"info","message":"Started watching project logs in: E:\\Freelance\\LogVistaV2\\test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:53.307Z"} {"level":"info","message":"Starting LogVista Agent Scheduler","service":"logvista-agent","timestamp":"2025-07-24T07:59:53.308Z"} {"level":"info","message":"Started metrics task","service":"logvista-agent","timestamp":"2025-07-24T07:59:53.315Z"} {"level":"info","message":"Started logs task","service":"logvista-agent","timestamp":"2025-07-24T07:59:53.315Z"} {"level":"info","message":"Started retry task","service":"logvista-agent","timestamp":"2025-07-24T07:59:53.317Z"} {"level":"info","message":"Started serverInfo task","service":"logvista-agent","timestamp":"2025-07-24T07:59:53.317Z"} {"level":"info","message":"All scheduled tasks started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:53.318Z"} {"level":"info","message":"LogVista Agent started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:53.318Z"} {"config":{"batchSize":100,"centralUrl":"http://localhost:3001","collectionInterval":30},"isRunning":true,"level":"info","message":"Agent Status:","projects":[{"logPaths":3,"name":"test-api-project","path":"E:\\Freelance\\LogVistaV2\\test-api-project"}],"scheduler":{"activeTasks":["metrics","logs","retry","serverInfo"],"isRunning":true,"taskCount":4},"service":"logvista-agent","timestamp":"2025-07-24T07:59:53.319Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for server-info - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T07:59:54.067Z"} {"level":"info","message":"Saved server-info data offline: server-info-2025-07-24T07-59-54-068Z.json","service":"logvista-agent","timestamp":"2025-07-24T07:59:54.069Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:59:54.070Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T07:59:54.376Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T07-59-54-377Z.json","service":"logvista-agent","timestamp":"2025-07-24T07:59:54.381Z"} {"cause":{"code":"ECONNREFUSED"},"code":"ECONNREFUSED","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T07:59:46.000Z\",\"level\":\"INFO\",\"message\":\"SIGINT received, shutting down gracefully\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"SIGINT received, shutting down gracefully\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:29:46\"}},{\"timestamp\":\"2025-07-24T07:59:46.000Z\",\"level\":\"INFO\",\"message\":\"SIGINT received, shutting down gracefully\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"SIGINT received, shutting down gracefully\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:29:46\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:59:54.372Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"780","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"errors":[{"address":"::1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"},{"address":"127.0.0.1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"}],"level":"error","message":"Error in log upload:","name":"AggregateError","request":{"_currentRequest":{"_closed":true,"_contentLength":780,"_defaultKeepAlive":true,"_ended":false,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 780\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":"[Circular]","_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":null,"reusedSocket":false,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"780","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[{"data":{"data":[123,34,108,111,103,115,34,58,91,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,55,58,53,57,58,52,54,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,83,73,71,73,78,84,32,114,101,99,101,105,118,101,100,44,32,115,104,117,116,116,105,110,103,32,100,111,119,110,32,103,114,97,99,101,102,117,108,108,121,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,99,99,101,115,115,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,115,115,97,103,101,34,58,34,83,73,71,73,78,84,32,114,101,99,101,105,118,101,100,44,32,115,104,117,116,116,105,110,103,32,100,111,119,110,32,103,114,97,99,101,102,117,108,108,121,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,50,57,58,52,54,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,55,58,53,57,58,52,54,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,83,73,71,73,78,84,32,114,101,99,101,105,118,101,100,44,32,115,104,117,116,116,105,110,103,32,100,111,119,110,32,103,114,97,99,101,102,117,108,108,121,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,112,112,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,115,115,97,103,101,34,58,34,83,73,71,73,78,84,32,114,101,99,101,105,118,101,100,44,32,115,104,117,116,116,105,110,103,32,100,111,119,110,32,103,114,97,99,101,102,117,108,108,121,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,50,57,58,52,54,34,125,125,93,44,34,97,103,101,110,116,34,58,123,34,118,101,114,115,105,111,110,34,58,34,49,46,48,46,48,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,55,58,53,57,58,53,52,46,51,55,50,90,34,125,125],"type":"Buffer"}}],"_requestBodyLength":780,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"service":"logvista-agent","stack":"AggregateError\n at AxiosError.from (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:899:14)\n at RedirectableRequest.handleRequestError (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3228:25)\n at RedirectableRequest.emit (node:events:519:35)\n at eventHandlers. (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\follow-redirects\\index.js:49:24)\n at ClientRequest.emit (node:events:507:28)\n at emitErrorEvent (node:_http_client:104:11)\n at Socket.socketErrorListener (node:_http_client:518:5)\n at Socket.emit (node:events:507:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:42:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:138:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:37:7)","timestamp":"2025-07-24T07:59:54.388Z"} {"level":"info","message":"Initializing LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.001Z"} {"level":"info","message":"Configuration loaded successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.014Z"} {"level":"error","message":"Connection test failed:","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.065Z"} {"level":"warn","message":"Unable to connect to central system. Agent will continue and retry periodically.","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.066Z"} {"level":"info","message":"LogVista Agent initialized successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.066Z"} {"level":"info","message":"Starting LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.067Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\app.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.070Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\error.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.072Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\access.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.073Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for server-info - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.083Z"} {"level":"info","message":"Started watching project logs in: E:\\Freelance\\LogVistaV2\\test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.074Z"} {"level":"info","message":"Starting LogVista Agent Scheduler","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.075Z"} {"level":"info","message":"Started metrics task","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.079Z"} {"level":"info","message":"Started logs task","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.080Z"} {"level":"info","message":"Started retry task","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.081Z"} {"level":"info","message":"Started serverInfo task","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.081Z"} {"level":"info","message":"All scheduled tasks started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.082Z"} {"level":"info","message":"LogVista Agent started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.082Z"} {"config":{"batchSize":100,"centralUrl":"http://localhost:3001","collectionInterval":30},"isRunning":true,"level":"info","message":"Agent Status:","projects":[{"logPaths":3,"name":"test-api-project","path":"E:\\Freelance\\LogVistaV2\\test-api-project"}],"scheduler":{"activeTasks":["metrics","logs","retry","serverInfo"],"isRunning":true,"taskCount":4},"service":"logvista-agent","timestamp":"2025-07-24T07:59:55.083Z"} {"level":"info","message":"Saved server-info data offline: server-info-2025-07-24T07-59-55-084Z.json","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.085Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.086Z"} {"level":"info","message":"Initializing LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.864Z"} {"level":"info","message":"Configuration loaded successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.876Z"} {"level":"error","message":"Connection test failed:","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.942Z"} {"level":"warn","message":"Unable to connect to central system. Agent will continue and retry periodically.","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.943Z"} {"level":"info","message":"LogVista Agent initialized successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.943Z"} {"level":"info","message":"Starting LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.944Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\app.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.948Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\error.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.951Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\access.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.953Z"} {"level":"info","message":"Started watching project logs in: E:\\Freelance\\LogVistaV2\\test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.955Z"} {"level":"info","message":"Starting LogVista Agent Scheduler","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.956Z"} {"level":"info","message":"Started metrics task","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.962Z"} {"level":"info","message":"Started logs task","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.963Z"} {"level":"info","message":"Started retry task","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.963Z"} {"level":"info","message":"Started serverInfo task","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.964Z"} {"level":"info","message":"All scheduled tasks started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.964Z"} {"level":"info","message":"LogVista Agent started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:55.965Z"} {"config":{"batchSize":100,"centralUrl":"http://localhost:3001","collectionInterval":30},"isRunning":true,"level":"info","message":"Agent Status:","projects":[{"logPaths":3,"name":"test-api-project","path":"E:\\Freelance\\LogVistaV2\\test-api-project"}],"scheduler":{"activeTasks":["metrics","logs","retry","serverInfo"],"isRunning":true,"taskCount":4},"service":"logvista-agent","timestamp":"2025-07-24T07:59:55.966Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for server-info - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T07:59:57.104Z"} {"level":"info","message":"Saved server-info data offline: server-info-2025-07-24T07-59-57-104Z.json","service":"logvista-agent","timestamp":"2025-07-24T07:59:57.106Z"} {"cause":{"code":"ECONNREFUSED"},"code":"ECONNREFUSED","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"hostname\":\"DESKTOP-OQNP5BM\",\"platform\":\"win32\",\"architecture\":\"x64\",\"os\":{\"platform\":\"Windows\",\"distro\":\"Microsoft Windows 11 Pro\",\"release\":\"10.0.26100\",\"kernel\":\"10.0.26100\",\"arch\":\"x64\"},\"cpu\":{\"manufacturer\":\"Intel\",\"brand\":\"Core™ i5-8250U\",\"cores\":8,\"physicalCores\":4,\"speed\":1.6},\"system\":{\"manufacturer\":\"Acer\",\"model\":\"Aspire A515-51G\",\"version\":\"V2.02\",\"serial\":\"NXGWJSI00375106D9E3400\"},\"memory\":{\"total\":12754456576,\"free\":1556750336},\"uptime\":592649.812,\"loadavg\":[0,0,0],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T07:59:57.100Z\"},\"projects\":[{\"name\":\"test-api-project\",\"path\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\",\"logPaths\":[\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\error.log\",\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\"]}]}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"850","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/servers/register","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"errors":[{"address":"::1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"},{"address":"127.0.0.1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"}],"level":"error","message":"Error updating server information:","name":"AggregateError","request":{"_currentRequest":{"_closed":true,"_contentLength":850,"_defaultKeepAlive":true,"_ended":false,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/servers/register HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 850\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":"[Circular]","_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/servers/register","protocol":"http:","res":null,"reusedSocket":false,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"_currentUrl":"http://localhost:3001/api/servers/register","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"850","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/servers/register","pathname":"/api/servers/register","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[{"data":{"data":[123,34,104,111,115,116,110,97,109,101,34,58,34,68,69,83,75,84,79,80,45,79,81,78,80,53,66,77,34,44,34,112,108,97,116,102,111,114,109,34,58,34,119,105,110,51,50,34,44,34,97,114,99,104,105,116,101,99,116,117,114,101,34,58,34,120,54,52,34,44,34,111,115,34,58,123,34,112,108,97,116,102,111,114,109,34,58,34,87,105,110,100,111,119,115,34,44,34,100,105,115,116,114,111,34,58,34,77,105,99,114,111,115,111,102,116,32,87,105,110,100,111,119,115,32,49,49,32,80,114,111,34,44,34,114,101,108,101,97,115,101,34,58,34,49,48,46,48,46,50,54,49,48,48,34,44,34,107,101,114,110,101,108,34,58,34,49,48,46,48,46,50,54,49,48,48,34,44,34,97,114,99,104,34,58,34,120,54,52,34,125,44,34,99,112,117,34,58,123,34,109,97,110,117,102,97,99,116,117,114,101,114,34,58,34,73,110,116,101,108,34,44,34,98,114,97,110,100,34,58,34,67,111,114,101,226,132,162,32,105,53,45,56,50,53,48,85,34,44,34,99,111,114,101,115,34,58,56,44,34,112,104,121,115,105,99,97,108,67,111,114,101,115,34,58,52,44,34,115,112,101,101,100,34,58,49,46,54,125,44,34,115,121,115,116,101,109,34,58,123,34,109,97,110,117,102,97,99,116,117,114,101,114,34,58,34,65,99,101,114,34,44,34,109,111,100,101,108,34,58,34,65,115,112,105,114,101,32,65,53,49,53,45,53,49,71,34,44,34,118,101,114,115,105,111,110,34,58,34,86,50,46,48,50,34,44,34,115,101,114,105,97,108,34,58,34,78,88,71,87,74,83,73,48,48,51,55,53,49,48,54,68,57,69,51,52,48,48,34,125,44,34,109,101,109,111,114,121,34,58,123,34,116,111,116,97,108,34,58,49,50,55,53,52,52,53,54,53,55,54,44,34,102,114,101,101,34,58,49,53,53,54,55,53,48,51,51,54,125,44,34,117,112,116,105,109,101,34,58,53,57,50,54,52,57,46,56,49,50,44,34,108,111,97,100,97,118,103,34,58,91,48,44,48,44,48,93,44,34,97,103,101,110,116,34,58,123,34,118,101,114,115,105,111,110,34,58,34,49,46,48,46,48,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,55,58,53,57,58,53,55,46,49,48,48,90,34,125,44,34,112,114,111,106,101,99,116,115,34,58,91,123,34,110,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,112,97,116,104,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,108,111,103,80,97,116,104,115,34,58,91,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,112,112,46,108,111,103,34,44,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,101,114,114,111,114,46,108,111,103,34,44,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,99,99,101,115,115,46,108,111,103,34,93,125,93,125],"type":"Buffer"}}],"_requestBodyLength":850,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"service":"logvista-agent","stack":"AggregateError\n at AxiosError.from (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:899:14)\n at RedirectableRequest.handleRequestError (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3228:25)\n at RedirectableRequest.emit (node:events:519:35)\n at eventHandlers. (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\follow-redirects\\index.js:49:24)\n at ClientRequest.emit (node:events:507:28)\n at emitErrorEvent (node:_http_client:104:11)\n at Socket.socketErrorListener (node:_http_client:518:5)\n at Socket.emit (node:events:507:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadServerInfo (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:61:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.updateServerInfo (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:211:7)","timestamp":"2025-07-24T07:59:57.106Z"} {"level":"info","message":"Initializing LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:57.587Z"} {"level":"info","message":"Configuration loaded successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:57.597Z"} {"level":"error","message":"Connection test failed:","service":"logvista-agent","timestamp":"2025-07-24T07:59:57.642Z"} {"level":"warn","message":"Unable to connect to central system. Agent will continue and retry periodically.","service":"logvista-agent","timestamp":"2025-07-24T07:59:57.642Z"} {"level":"info","message":"LogVista Agent initialized successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:57.643Z"} {"level":"info","message":"Starting LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T07:59:57.643Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\app.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:57.647Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\error.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:57.650Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\access.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:57.651Z"} {"level":"info","message":"Started watching project logs in: E:\\Freelance\\LogVistaV2\\test-api-project","service":"logvista-agent","timestamp":"2025-07-24T07:59:57.652Z"} {"level":"info","message":"Starting LogVista Agent Scheduler","service":"logvista-agent","timestamp":"2025-07-24T07:59:57.652Z"} {"level":"info","message":"Started metrics task","service":"logvista-agent","timestamp":"2025-07-24T07:59:57.656Z"} {"level":"info","message":"Started logs task","service":"logvista-agent","timestamp":"2025-07-24T07:59:57.656Z"} {"level":"info","message":"Started retry task","service":"logvista-agent","timestamp":"2025-07-24T07:59:57.657Z"} {"level":"info","message":"Started serverInfo task","service":"logvista-agent","timestamp":"2025-07-24T07:59:57.657Z"} {"level":"info","message":"All scheduled tasks started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:57.657Z"} {"level":"info","message":"LogVista Agent started successfully","service":"logvista-agent","timestamp":"2025-07-24T07:59:57.658Z"} {"config":{"batchSize":100,"centralUrl":"http://localhost:3001","collectionInterval":30},"isRunning":true,"level":"info","message":"Agent Status:","projects":[{"logPaths":3,"name":"test-api-project","path":"E:\\Freelance\\LogVistaV2\\test-api-project"}],"scheduler":{"activeTasks":["metrics","logs","retry","serverInfo"],"isRunning":true,"taskCount":4},"service":"logvista-agent","timestamp":"2025-07-24T07:59:57.658Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:00.656Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-00-00-657Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:00.668Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:00:00.673Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:00.674Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-00-00-677Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:00.686Z"} {"level":"warn","message":"Failed to retry offline data logs-2025-07-24T07-58-30-936Z.json:","service":"logvista-agent","timestamp":"2025-07-24T08:00:00.686Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:00.694Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-00-00-705Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:00.707Z"} {"level":"warn","message":"Failed to retry offline data logs-2025-07-24T07-59-10-726Z.json:","service":"logvista-agent","timestamp":"2025-07-24T08:00:00.708Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:00.740Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-00-00-757Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:00.772Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:00:00.773Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:00.787Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:00.790Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-00-00-792Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:00.834Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-00-00-852Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:00.909Z"} {"level":"warn","message":"Failed to retry offline data logs-2025-07-24T07-58-30-936Z.json:","service":"logvista-agent","timestamp":"2025-07-24T08:00:00.857Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:00.984Z"} {"level":"warn","message":"Failed to retry offline data logs-2025-07-24T07-59-11-735Z.json:","service":"logvista-agent","timestamp":"2025-07-24T08:00:00.941Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:01.075Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-00-01-024Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:01.084Z"} {"level":"warn","message":"Failed to retry offline data logs-2025-07-24T07-59-10-726Z.json:","service":"logvista-agent","timestamp":"2025-07-24T08:00:01.113Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-00-01-183Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:01.226Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:01.296Z"} {"level":"warn","message":"Failed to retry offline data logs-2025-07-24T07-59-13-750Z.json:","service":"logvista-agent","timestamp":"2025-07-24T08:00:01.255Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:01.355Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-00-01-357Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:01.420Z"} {"level":"warn","message":"Failed to retry offline data logs-2025-07-24T07-59-11-735Z.json:","service":"logvista-agent","timestamp":"2025-07-24T08:00:01.460Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-00-01-450Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:01.509Z"} {"level":"warn","message":"Failed to retry offline data logs-2025-07-24T07-59-50-655Z.json:","service":"logvista-agent","timestamp":"2025-07-24T08:00:01.556Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:01.618Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-00-01-672Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:01.814Z"} {"level":"warn","message":"Failed to retry offline data logs-2025-07-24T07-59-50-674Z.json:","service":"logvista-agent","timestamp":"2025-07-24T08:00:01.864Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:01.898Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:01.978Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-00-01-947Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:02.049Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:00:02.075Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-00-02-100Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:02.176Z"} {"level":"warn","message":"Failed to retry offline data logs-2025-07-24T07-59-51-866Z.json:","service":"logvista-agent","timestamp":"2025-07-24T08:00:02.217Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:02.255Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-00-02-291Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:02.339Z"} {"level":"warn","message":"Failed to retry offline data logs-2025-07-24T07-59-52-267Z.json:","service":"logvista-agent","timestamp":"2025-07-24T08:00:02.407Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:02.498Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-00-02-575Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:02.609Z"} {"level":"warn","message":"Failed to retry offline data logs-2025-07-24T07-59-54-377Z.json:","service":"logvista-agent","timestamp":"2025-07-24T08:00:02.623Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for metrics - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:02.677Z"} {"level":"info","message":"Saved metrics data offline: metrics-2025-07-24T08-00-02-725Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:02.769Z"} {"level":"warn","message":"Failed to retry offline data metrics-2025-07-24T07-59-14-151Z.json:","service":"logvista-agent","timestamp":"2025-07-24T08:00:02.826Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for metrics - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:02.879Z"} {"level":"info","message":"Saved metrics data offline: metrics-2025-07-24T08-00-02-901Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:02.920Z"} {"level":"warn","message":"Failed to retry offline data metrics-2025-07-24T07-59-15-171Z.json:","service":"logvista-agent","timestamp":"2025-07-24T08:00:02.942Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for metrics - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.022Z"} {"level":"info","message":"Saved metrics data offline: metrics-2025-07-24T08-00-03-076Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.157Z"} {"level":"warn","message":"Failed to retry offline data metrics-2025-07-24T07-59-17-187Z.json:","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.202Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for server-info - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.508Z"} {"level":"info","message":"Saved server-info data offline: server-info-2025-07-24T08-00-03-521Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.558Z"} {"level":"warn","message":"Failed to retry offline data server-info-2025-07-24T07-58-40-927Z.json:","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.637Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for server-info - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.693Z"} {"level":"info","message":"Saved server-info data offline: server-info-2025-07-24T08-00-03-698Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.700Z"} {"level":"warn","message":"Failed to retry offline data server-info-2025-07-24T07-58-42-137Z.json:","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.704Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for server-info - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.805Z"} {"level":"info","message":"Saved server-info data offline: server-info-2025-07-24T08-00-03-807Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.808Z"} {"level":"warn","message":"Failed to retry offline data server-info-2025-07-24T07-58-43-154Z.json:","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.809Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for server-info - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.817Z"} {"level":"info","message":"Saved server-info data offline: server-info-2025-07-24T08-00-03-820Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.822Z"} {"level":"warn","message":"Failed to retry offline data server-info-2025-07-24T07-58-45-172Z.json:","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.830Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for server-info - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.842Z"} {"level":"info","message":"Saved server-info data offline: server-info-2025-07-24T08-00-03-847Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.849Z"} {"level":"warn","message":"Failed to retry offline data server-info-2025-07-24T07-58-53-226Z.json:","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.857Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for server-info - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.878Z"} {"level":"info","message":"Saved server-info data offline: server-info-2025-07-24T08-00-03-891Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.896Z"} {"level":"warn","message":"Failed to retry offline data server-info-2025-07-24T07-59-02-084Z.json:","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.899Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for server-info - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.925Z"} {"level":"info","message":"Saved server-info data offline: server-info-2025-07-24T08-00-03-929Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.931Z"} {"level":"warn","message":"Failed to retry offline data server-info-2025-07-24T07-59-26-140Z.json:","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.932Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for server-info - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.938Z"} {"level":"info","message":"Saved server-info data offline: server-info-2025-07-24T08-00-03-940Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.941Z"} {"level":"warn","message":"Failed to retry offline data server-info-2025-07-24T07-59-34-996Z.json:","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.941Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for server-info - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.947Z"} {"level":"info","message":"Saved server-info data offline: server-info-2025-07-24T08-00-03-949Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.950Z"} {"level":"warn","message":"Failed to retry offline data server-info-2025-07-24T07-59-43-478Z.json:","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.951Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for server-info - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.956Z"} {"level":"info","message":"Saved server-info data offline: server-info-2025-07-24T08-00-03-958Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.959Z"} {"level":"warn","message":"Failed to retry offline data server-info-2025-07-24T07-59-54-068Z.json:","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.960Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for server-info - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.967Z"} {"level":"info","message":"Saved server-info data offline: server-info-2025-07-24T08-00-03-969Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.970Z"} {"level":"warn","message":"Failed to retry offline data server-info-2025-07-24T07-59-55-084Z.json:","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.971Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for server-info - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.979Z"} {"level":"info","message":"Saved server-info data offline: server-info-2025-07-24T08-00-03-982Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.984Z"} {"level":"warn","message":"Failed to retry offline data server-info-2025-07-24T07-59-57-104Z.json:","service":"logvista-agent","timestamp":"2025-07-24T08:00:03.986Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:04.108Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-00-04-109Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:04.115Z"} {"cause":{"code":"ECONNREFUSED"},"code":"ECONNREFUSED","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T07:59:53.000Z\",\"level\":\"INFO\",\"message\":\"Test API server started on port 4001\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"environment\":\"development\",\"level\":\"info\",\"message\":\"Test API server started on port 4001\",\"port\":4001,\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:29:53\"}},{\"timestamp\":\"2025-07-24T07:59:53.000Z\",\"level\":\"INFO\",\"message\":\"Test API server started on port 4001\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"environment\":\"development\",\"level\":\"info\",\"message\":\"Test API server started on port 4001\",\"port\":4001,\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:29:53\"}},{\"timestamp\":\"2025-07-24T07:59:58.000Z\",\"level\":\"INFO\",\"message\":\"Starting scheduled API request\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"Starting scheduled API request\",\"requestId\":1753343998588,\"service\":\"test-api\",\"statusMessage\":\"Cache performance optimal\",\"targetUrl\":\"https://httpbin.org/get\",\"timestamp\":\"2025-07-24 13:29:58\"}},{\"timestamp\":\"2025-07-24T07:59:58.000Z\",\"level\":\"INFO\",\"message\":\"Starting scheduled API request\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"Starting scheduled API request\",\"requestId\":1753343998588,\"service\":\"test-api\",\"statusMessage\":\"Cache performance optimal\",\"targetUrl\":\"https://httpbin.org/get\",\"timestamp\":\"2025-07-24 13:29:58\"}},{\"timestamp\":\"2025-07-24T07:59:58.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"10.40%\",\"disk\":\"29.04%\",\"level\":\"info\",\"memory\":\"48.63%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:29:58\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T07:59:58.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"10.40%\",\"disk\":\"29.04%\",\"level\":\"info\",\"memory\":\"48.63%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:29:58\",\"type\":\"system_metrics\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T08:00:04.104Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"2496","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"errors":[{"address":"::1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"},{"address":"127.0.0.1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"}],"level":"error","message":"Error in log upload:","name":"AggregateError","request":{"_currentRequest":{"_closed":true,"_contentLength":2496,"_defaultKeepAlive":true,"_ended":false,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 2496\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":"[Circular]","_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":null,"reusedSocket":false,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"2496","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[{"data":{"data":[123,34,108,111,103,115,34,58,91,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,55,58,53,57,58,53,51,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,84,101,115,116,32,65,80,73,32,115,101,114,118,101,114,32,115,116,97,114,116,101,100,32,111,110,32,112,111,114,116,32,52,48,48,49,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,99,99,101,115,115,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,101,110,118,105,114,111,110,109,101,110,116,34,58,34,100,101,118,101,108,111,112,109,101,110,116,34,44,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,115,115,97,103,101,34,58,34,84,101,115,116,32,65,80,73,32,115,101,114,118,101,114,32,115,116,97,114,116,101,100,32,111,110,32,112,111,114,116,32,52,48,48,49,34,44,34,112,111,114,116,34,58,52,48,48,49,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,50,57,58,53,51,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,55,58,53,57,58,53,51,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,84,101,115,116,32,65,80,73,32,115,101,114,118,101,114,32,115,116,97,114,116,101,100,32,111,110,32,112,111,114,116,32,52,48,48,49,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,112,112,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,101,110,118,105,114,111,110,109,101,110,116,34,58,34,100,101,118,101,108,111,112,109,101,110,116,34,44,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,115,115,97,103,101,34,58,34,84,101,115,116,32,65,80,73,32,115,101,114,118,101,114,32,115,116,97,114,116,101,100,32,111,110,32,112,111,114,116,32,52,48,48,49,34,44,34,112,111,114,116,34,58,52,48,48,49,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,50,57,58,53,51,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,55,58,53,57,58,53,56,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,83,116,97,114,116,105,110,103,32,115,99,104,101,100,117,108,101,100,32,65,80,73,32,114,101,113,117,101,115,116,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,112,112,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,115,115,97,103,101,34,58,34,83,116,97,114,116,105,110,103,32,115,99,104,101,100,117,108,101,100,32,65,80,73,32,114,101,113,117,101,115,116,34,44,34,114,101,113,117,101,115,116,73,100,34,58,49,55,53,51,51,52,51,57,57,56,53,56,56,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,115,116,97,116,117,115,77,101,115,115,97,103,101,34,58,34,67,97,99,104,101,32,112,101,114,102,111,114,109,97,110,99,101,32,111,112,116,105,109,97,108,34,44,34,116,97,114,103,101,116,85,114,108,34,58,34,104,116,116,112,115,58,47,47,104,116,116,112,98,105,110,46,111,114,103,47,103,101,116,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,50,57,58,53,56,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,55,58,53,57,58,53,56,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,83,116,97,114,116,105,110,103,32,115,99,104,101,100,117,108,101,100,32,65,80,73,32,114,101,113,117,101,115,116,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,99,99,101,115,115,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,115,115,97,103,101,34,58,34,83,116,97,114,116,105,110,103,32,115,99,104,101,100,117,108,101,100,32,65,80,73,32,114,101,113,117,101,115,116,34,44,34,114,101,113,117,101,115,116,73,100,34,58,49,55,53,51,51,52,51,57,57,56,53,56,56,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,115,116,97,116,117,115,77,101,115,115,97,103,101,34,58,34,67,97,99,104,101,32,112,101,114,102,111,114,109,97,110,99,101,32,111,112,116,105,109,97,108,34,44,34,116,97,114,103,101,116,85,114,108,34,58,34,104,116,116,112,115,58,47,47,104,116,116,112,98,105,110,46,111,114,103,47,103,101,116,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,50,57,58,53,56,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,55,58,53,57,58,53,56,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,83,121,115,116,101,109,32,109,101,116,114,105,99,115,32,99,111,108,108,101,99,116,101,100,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,112,112,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,99,112,117,34,58,34,49,48,46,52,48,37,34,44,34,100,105,115,107,34,58,34,50,57,46,48,52,37,34,44,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,109,111,114,121,34,58,34,52,56,46,54,51,37,34,44,34,109,101,115,115,97,103,101,34,58,34,83,121,115,116,101,109,32,109,101,116,114,105,99,115,32,99,111,108,108,101,99,116,101,100,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,50,57,58,53,56,34,44,34,116,121,112,101,34,58,34,115,121,115,116,101,109,95,109,101,116,114,105,99,115,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,55,58,53,57,58,53,56,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,83,121,115,116,101,109,32,109,101,116,114,105,99,115,32,99,111,108,108,101,99,116,101,100,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,99,99,101,115,115,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,99,112,117,34,58,34,49,48,46,52,48,37,34,44,34,100,105,115,107,34,58,34,50,57,46,48,52,37,34,44,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,109,111,114,121,34,58,34,52,56,46,54,51,37,34,44,34,109,101,115,115,97,103,101,34,58,34,83,121,115,116,101,109,32,109,101,116,114,105,99,115,32,99,111,108,108,101,99,116,101,100,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,50,57,58,53,56,34,44,34,116,121,112,101,34,58,34,115,121,115,116,101,109,95,109,101,116,114,105,99,115,34,125,125,93,44,34,97,103,101,110,116,34,58,123,34,118,101,114,115,105,111,110,34,58,34,49,46,48,46,48,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,48,58,48,52,46,49,48,52,90,34,125,125],"type":"Buffer"}}],"_requestBodyLength":2496,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"service":"logvista-agent","stack":"AggregateError\n at AxiosError.from (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:899:14)\n at RedirectableRequest.handleRequestError (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3228:25)\n at RedirectableRequest.emit (node:events:519:35)\n at eventHandlers. (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\follow-redirects\\index.js:49:24)\n at ClientRequest.emit (node:events:507:28)\n at emitErrorEvent (node:_http_client:104:11)\n at Socket.socketErrorListener (node:_http_client:518:5)\n at Socket.emit (node:events:507:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:42:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:138:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:37:7)","timestamp":"2025-07-24T08:00:04.117Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:10.216Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-00-10-217Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:10.218Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:00:10.218Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:11.222Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-00-11-223Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:11.223Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:00:11.224Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for metrics - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:11.854Z"} {"level":"info","message":"Saved metrics data offline: metrics-2025-07-24T08-00-11-855Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:11.856Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:00:11.856Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for metrics - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:12.861Z"} {"level":"info","message":"Saved metrics data offline: metrics-2025-07-24T08-00-12-862Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:12.863Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:00:12.863Z"} {"level":"info","message":"Received SIGINT, shutting down gracefully...","service":"logvista-agent","timestamp":"2025-07-24T08:00:13.018Z"} {"level":"info","message":"Initializing LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T08:00:16.461Z"} {"level":"info","message":"Configuration loaded successfully","service":"logvista-agent","timestamp":"2025-07-24T08:00:16.473Z"} {"level":"error","message":"Connection test failed:","service":"logvista-agent","timestamp":"2025-07-24T08:00:16.514Z"} {"level":"warn","message":"Unable to connect to central system. Agent will continue and retry periodically.","service":"logvista-agent","timestamp":"2025-07-24T08:00:16.515Z"} {"level":"info","message":"LogVista Agent initialized successfully","service":"logvista-agent","timestamp":"2025-07-24T08:00:16.515Z"} {"level":"info","message":"Starting LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T08:00:16.516Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\app.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T08:00:16.519Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\error.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T08:00:16.521Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\access.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T08:00:16.522Z"} {"level":"info","message":"Started watching project logs in: E:\\Freelance\\LogVistaV2\\test-api-project","service":"logvista-agent","timestamp":"2025-07-24T08:00:16.523Z"} {"level":"info","message":"Starting LogVista Agent Scheduler","service":"logvista-agent","timestamp":"2025-07-24T08:00:16.524Z"} {"level":"info","message":"Started metrics task","service":"logvista-agent","timestamp":"2025-07-24T08:00:16.528Z"} {"level":"info","message":"Started logs task","service":"logvista-agent","timestamp":"2025-07-24T08:00:16.529Z"} {"level":"info","message":"Started retry task","service":"logvista-agent","timestamp":"2025-07-24T08:00:16.530Z"} {"level":"info","message":"Started serverInfo task","service":"logvista-agent","timestamp":"2025-07-24T08:00:16.530Z"} {"level":"info","message":"All scheduled tasks started successfully","service":"logvista-agent","timestamp":"2025-07-24T08:00:16.530Z"} {"level":"info","message":"LogVista Agent started successfully","service":"logvista-agent","timestamp":"2025-07-24T08:00:16.531Z"} {"config":{"batchSize":100,"centralUrl":"http://localhost:3001","collectionInterval":30},"isRunning":true,"level":"info","message":"Agent Status:","projects":[{"logPaths":3,"name":"test-api-project","path":"E:\\Freelance\\LogVistaV2\\test-api-project"}],"scheduler":{"activeTasks":["metrics","logs","retry","serverInfo"],"isRunning":true,"taskCount":4},"service":"logvista-agent","timestamp":"2025-07-24T08:00:16.531Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for server-info - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:24.066Z"} {"level":"info","message":"Saved server-info data offline: server-info-2025-07-24T08-00-24-067Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:24.069Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:00:24.069Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for server-info - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:25.080Z"} {"level":"info","message":"Saved server-info data offline: server-info-2025-07-24T08-00-25-082Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:25.084Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:00:25.085Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for server-info - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:27.098Z"} {"level":"info","message":"Saved server-info data offline: server-info-2025-07-24T08-00-27-099Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:27.100Z"} {"cause":{"code":"ECONNREFUSED"},"code":"ECONNREFUSED","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"hostname\":\"DESKTOP-OQNP5BM\",\"platform\":\"win32\",\"architecture\":\"x64\",\"os\":{\"platform\":\"Windows\",\"distro\":\"Microsoft Windows 11 Pro\",\"release\":\"10.0.26100\",\"kernel\":\"10.0.26100\",\"arch\":\"x64\"},\"cpu\":{\"manufacturer\":\"Intel\",\"brand\":\"Core™ i5-8250U\",\"cores\":8,\"physicalCores\":4,\"speed\":1.6},\"system\":{\"manufacturer\":\"Acer\",\"model\":\"Aspire A515-51G\",\"version\":\"V2.02\",\"serial\":\"NXGWJSI00375106D9E3400\"},\"memory\":{\"total\":12754456576,\"free\":1650970624},\"uptime\":592679.812,\"loadavg\":[0,0,0],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T08:00:27.095Z\"},\"projects\":[{\"name\":\"test-api-project\",\"path\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\",\"logPaths\":[\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\error.log\",\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\"]}]}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"850","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/servers/register","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"errors":[{"address":"::1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"},{"address":"127.0.0.1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"}],"level":"error","message":"Error updating server information:","name":"AggregateError","request":{"_currentRequest":{"_closed":true,"_contentLength":850,"_defaultKeepAlive":true,"_ended":false,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/servers/register HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 850\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":"[Circular]","_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/servers/register","protocol":"http:","res":null,"reusedSocket":false,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"_currentUrl":"http://localhost:3001/api/servers/register","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"850","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/servers/register","pathname":"/api/servers/register","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[{"data":{"data":[123,34,104,111,115,116,110,97,109,101,34,58,34,68,69,83,75,84,79,80,45,79,81,78,80,53,66,77,34,44,34,112,108,97,116,102,111,114,109,34,58,34,119,105,110,51,50,34,44,34,97,114,99,104,105,116,101,99,116,117,114,101,34,58,34,120,54,52,34,44,34,111,115,34,58,123,34,112,108,97,116,102,111,114,109,34,58,34,87,105,110,100,111,119,115,34,44,34,100,105,115,116,114,111,34,58,34,77,105,99,114,111,115,111,102,116,32,87,105,110,100,111,119,115,32,49,49,32,80,114,111,34,44,34,114,101,108,101,97,115,101,34,58,34,49,48,46,48,46,50,54,49,48,48,34,44,34,107,101,114,110,101,108,34,58,34,49,48,46,48,46,50,54,49,48,48,34,44,34,97,114,99,104,34,58,34,120,54,52,34,125,44,34,99,112,117,34,58,123,34,109,97,110,117,102,97,99,116,117,114,101,114,34,58,34,73,110,116,101,108,34,44,34,98,114,97,110,100,34,58,34,67,111,114,101,226,132,162,32,105,53,45,56,50,53,48,85,34,44,34,99,111,114,101,115,34,58,56,44,34,112,104,121,115,105,99,97,108,67,111,114,101,115,34,58,52,44,34,115,112,101,101,100,34,58,49,46,54,125,44,34,115,121,115,116,101,109,34,58,123,34,109,97,110,117,102,97,99,116,117,114,101,114,34,58,34,65,99,101,114,34,44,34,109,111,100,101,108,34,58,34,65,115,112,105,114,101,32,65,53,49,53,45,53,49,71,34,44,34,118,101,114,115,105,111,110,34,58,34,86,50,46,48,50,34,44,34,115,101,114,105,97,108,34,58,34,78,88,71,87,74,83,73,48,48,51,55,53,49,48,54,68,57,69,51,52,48,48,34,125,44,34,109,101,109,111,114,121,34,58,123,34,116,111,116,97,108,34,58,49,50,55,53,52,52,53,54,53,55,54,44,34,102,114,101,101,34,58,49,54,53,48,57,55,48,54,50,52,125,44,34,117,112,116,105,109,101,34,58,53,57,50,54,55,57,46,56,49,50,44,34,108,111,97,100,97,118,103,34,58,91,48,44,48,44,48,93,44,34,97,103,101,110,116,34,58,123,34,118,101,114,115,105,111,110,34,58,34,49,46,48,46,48,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,48,58,50,55,46,48,57,53,90,34,125,44,34,112,114,111,106,101,99,116,115,34,58,91,123,34,110,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,112,97,116,104,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,108,111,103,80,97,116,104,115,34,58,91,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,112,112,46,108,111,103,34,44,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,101,114,114,111,114,46,108,111,103,34,44,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,99,99,101,115,115,46,108,111,103,34,93,125,93,125],"type":"Buffer"}}],"_requestBodyLength":850,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"service":"logvista-agent","stack":"AggregateError\n at AxiosError.from (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:899:14)\n at RedirectableRequest.handleRequestError (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3228:25)\n at RedirectableRequest.emit (node:events:519:35)\n at eventHandlers. (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\follow-redirects\\index.js:49:24)\n at ClientRequest.emit (node:events:507:28)\n at emitErrorEvent (node:_http_client:104:11)\n at Socket.socketErrorListener (node:_http_client:518:5)\n at Socket.emit (node:events:507:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadServerInfo (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:61:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.updateServerInfo (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:211:7)","timestamp":"2025-07-24T08:00:27.101Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:30.755Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-00-30-758Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:30.760Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:00:30.761Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:31.768Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-00-31-770Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:31.771Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:00:31.771Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:00:33.790Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-00-33-791Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:00:33.792Z"} {"cause":{"code":"ECONNREFUSED"},"code":"ECONNREFUSED","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T08:00:21.000Z\",\"level\":\"INFO\",\"message\":\"SIGINT received, shutting down gracefully\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"SIGINT received, shutting down gracefully\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:30:21\"}},{\"timestamp\":\"2025-07-24T08:00:21.000Z\",\"level\":\"INFO\",\"message\":\"SIGINT received, shutting down gracefully\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"SIGINT received, shutting down gracefully\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:30:21\"}},{\"timestamp\":\"2025-07-24T08:00:25.000Z\",\"level\":\"INFO\",\"message\":\"Test API server started on port 4001\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"environment\":\"development\",\"level\":\"info\",\"message\":\"Test API server started on port 4001\",\"port\":4001,\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:30:25\"}},{\"timestamp\":\"2025-07-24T08:00:25.000Z\",\"level\":\"INFO\",\"message\":\"Test API server started on port 4001\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"environment\":\"development\",\"level\":\"info\",\"message\":\"Test API server started on port 4001\",\"port\":4001,\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:30:25\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T08:00:33.787Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"1543","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"errors":[{"address":"::1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"},{"address":"127.0.0.1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"}],"level":"error","message":"Error in log upload:","name":"AggregateError","request":{"_currentRequest":{"_closed":true,"_contentLength":1543,"_defaultKeepAlive":true,"_ended":false,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 1543\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":"[Circular]","_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":null,"reusedSocket":false,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"1543","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[{"data":{"data":[123,34,108,111,103,115,34,58,91,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,48,58,50,49,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,83,73,71,73,78,84,32,114,101,99,101,105,118,101,100,44,32,115,104,117,116,116,105,110,103,32,100,111,119,110,32,103,114,97,99,101,102,117,108,108,121,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,112,112,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,115,115,97,103,101,34,58,34,83,73,71,73,78,84,32,114,101,99,101,105,118,101,100,44,32,115,104,117,116,116,105,110,103,32,100,111,119,110,32,103,114,97,99,101,102,117,108,108,121,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,51,48,58,50,49,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,48,58,50,49,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,83,73,71,73,78,84,32,114,101,99,101,105,118,101,100,44,32,115,104,117,116,116,105,110,103,32,100,111,119,110,32,103,114,97,99,101,102,117,108,108,121,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,99,99,101,115,115,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,115,115,97,103,101,34,58,34,83,73,71,73,78,84,32,114,101,99,101,105,118,101,100,44,32,115,104,117,116,116,105,110,103,32,100,111,119,110,32,103,114,97,99,101,102,117,108,108,121,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,51,48,58,50,49,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,48,58,50,53,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,84,101,115,116,32,65,80,73,32,115,101,114,118,101,114,32,115,116,97,114,116,101,100,32,111,110,32,112,111,114,116,32,52,48,48,49,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,99,99,101,115,115,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,101,110,118,105,114,111,110,109,101,110,116,34,58,34,100,101,118,101,108,111,112,109,101,110,116,34,44,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,115,115,97,103,101,34,58,34,84,101,115,116,32,65,80,73,32,115,101,114,118,101,114,32,115,116,97,114,116,101,100,32,111,110,32,112,111,114,116,32,52,48,48,49,34,44,34,112,111,114,116,34,58,52,48,48,49,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,51,48,58,50,53,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,48,58,50,53,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,84,101,115,116,32,65,80,73,32,115,101,114,118,101,114,32,115,116,97,114,116,101,100,32,111,110,32,112,111,114,116,32,52,48,48,49,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,112,112,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,101,110,118,105,114,111,110,109,101,110,116,34,58,34,100,101,118,101,108,111,112,109,101,110,116,34,44,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,115,115,97,103,101,34,58,34,84,101,115,116,32,65,80,73,32,115,101,114,118,101,114,32,115,116,97,114,116,101,100,32,111,110,32,112,111,114,116,32,52,48,48,49,34,44,34,112,111,114,116,34,58,52,48,48,49,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,51,48,58,50,53,34,125,125,93,44,34,97,103,101,110,116,34,58,123,34,118,101,114,115,105,111,110,34,58,34,49,46,48,46,48,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,48,58,51,51,46,55,56,55,90,34,125,125],"type":"Buffer"}}],"_requestBodyLength":1543,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"service":"logvista-agent","stack":"AggregateError\n at AxiosError.from (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:899:14)\n at RedirectableRequest.handleRequestError (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3228:25)\n at RedirectableRequest.emit (node:events:519:35)\n at eventHandlers. (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\follow-redirects\\index.js:49:24)\n at ClientRequest.emit (node:events:507:28)\n at emitErrorEvent (node:_http_client:104:11)\n at Socket.socketErrorListener (node:_http_client:518:5)\n at Socket.emit (node:events:507:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:42:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:138:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:37:7)","timestamp":"2025-07-24T08:00:33.793Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:00:40.880Z"} {"level":"info","message":"Successfully uploaded 10 log records","service":"logvista-agent","timestamp":"2025-07-24T08:00:41.474Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:01:10.078Z"} {"level":"info","message":"Successfully uploaded 6 log records","service":"logvista-agent","timestamp":"2025-07-24T08:01:10.316Z"} {"level":"info","message":"Successfully uploaded 2 log records","service":"logvista-agent","timestamp":"2025-07-24T08:01:40.446Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:01:43.229Z"} {"level":"info","message":"Successfully uploaded 10 log records","service":"logvista-agent","timestamp":"2025-07-24T08:02:11.343Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:02:13.099Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for metrics - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:02:39.000Z"} {"level":"info","message":"Saved metrics data offline: metrics-2025-07-24T08-02-39-001Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:02:39.002Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:02:39.002Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for metrics - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:02:40.016Z"} {"level":"info","message":"Saved metrics data offline: metrics-2025-07-24T08-02-40-017Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:02:40.018Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:02:40.019Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:02:40.471Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-02-40-472Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:02:40.473Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:02:40.473Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:02:41.485Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-02-41-486Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:02:41.487Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:02:41.488Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for metrics - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:02:42.025Z"} {"level":"info","message":"Saved metrics data offline: metrics-2025-07-24T08-02-42-026Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:02:42.027Z"} {"cause":{"code":"ECONNREFUSED"},"code":"ECONNREFUSED","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"metrics\":[{\"type\":\"system\",\"cpuUsage\":22.252820057841433,\"ramUsage\":10728.08203125,\"ramTotal\":12163.59765625,\"diskUsage\":455361.08203125,\"diskTotal\":1441429.3046875,\"networkIn\":0.0025522687265438796,\"networkOut\":0.008857626360468877,\"processCount\":290,\"loadAverage\":0,\"timestamp\":\"2025-07-24T08:02:35.422Z\"},{\"type\":\"project\",\"projectName\":\"test-api-project\",\"timestamp\":\"2025-07-24T08:02:35.422Z\",\"projectDiskUsage\":7.486777305603027}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T08:02:42.023Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"506","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/metrics","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"errors":[{"address":"::1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"},{"address":"127.0.0.1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"}],"level":"error","message":"Error in metrics collection and upload:","name":"AggregateError","request":{"_currentRequest":{"_closed":true,"_contentLength":506,"_defaultKeepAlive":true,"_ended":false,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/metrics HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 506\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":"[Circular]","_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/metrics","protocol":"http:","res":null,"reusedSocket":false,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"_currentUrl":"http://localhost:3001/api/metrics","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"506","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/metrics","pathname":"/api/metrics","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[{"data":{"data":[123,34,109,101,116,114,105,99,115,34,58,91,123,34,116,121,112,101,34,58,34,115,121,115,116,101,109,34,44,34,99,112,117,85,115,97,103,101,34,58,50,50,46,50,53,50,56,50,48,48,53,55,56,52,49,52,51,51,44,34,114,97,109,85,115,97,103,101,34,58,49,48,55,50,56,46,48,56,50,48,51,49,50,53,44,34,114,97,109,84,111,116,97,108,34,58,49,50,49,54,51,46,53,57,55,54,53,54,50,53,44,34,100,105,115,107,85,115,97,103,101,34,58,52,53,53,51,54,49,46,48,56,50,48,51,49,50,53,44,34,100,105,115,107,84,111,116,97,108,34,58,49,52,52,49,52,50,57,46,51,48,52,54,56,55,53,44,34,110,101,116,119,111,114,107,73,110,34,58,48,46,48,48,50,53,53,50,50,54,56,55,50,54,53,52,51,56,55,57,54,44,34,110,101,116,119,111,114,107,79,117,116,34,58,48,46,48,48,56,56,53,55,54,50,54,51,54,48,52,54,56,56,55,55,44,34,112,114,111,99,101,115,115,67,111,117,110,116,34,58,50,57,48,44,34,108,111,97,100,65,118,101,114,97,103,101,34,58,48,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,50,58,51,53,46,52,50,50,90,34,125,44,123,34,116,121,112,101,34,58,34,112,114,111,106,101,99,116,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,50,58,51,53,46,52,50,50,90,34,44,34,112,114,111,106,101,99,116,68,105,115,107,85,115,97,103,101,34,58,55,46,52,56,54,55,55,55,51,48,53,54,48,51,48,50,55,125,93,44,34,97,103,101,110,116,34,58,123,34,118,101,114,115,105,111,110,34,58,34,49,46,48,46,48,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,50,58,52,50,46,48,50,51,90,34,125,125],"type":"Buffer"}}],"_requestBodyLength":506,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"service":"logvista-agent","stack":"AggregateError\n at AxiosError.from (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:899:14)\n at RedirectableRequest.handleRequestError (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3228:25)\n at RedirectableRequest.emit (node:events:519:35)\n at eventHandlers. (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\follow-redirects\\index.js:49:24)\n at ClientRequest.emit (node:events:507:28)\n at emitErrorEvent (node:_http_client:104:11)\n at Socket.socketErrorListener (node:_http_client:518:5)\n at Socket.emit (node:events:507:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:21:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.collectAndUploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:124:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:28:7)","timestamp":"2025-07-24T08:02:42.027Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:02:43.502Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-02-43-504Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:02:43.505Z"} {"cause":{"code":"ECONNREFUSED"},"code":"ECONNREFUSED","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T08:02:30.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"99.94%\",\"disk\":\"24.86%\",\"level\":\"info\",\"memory\":\"82.01%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:32:30\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T08:02:30.000Z\",\"level\":\"WARN\",\"message\":\"High CPU usage detected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"99.94%\",\"level\":\"warn\",\"message\":\"High CPU usage detected\",\"service\":\"test-api\",\"threshold\":\"80%\",\"timestamp\":\"2025-07-24 13:32:30\"}},{\"timestamp\":\"2025-07-24T08:02:30.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"99.94%\",\"disk\":\"24.86%\",\"level\":\"info\",\"memory\":\"82.01%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:32:30\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T08:02:30.000Z\",\"level\":\"WARN\",\"message\":\"High CPU usage detected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"99.94%\",\"level\":\"warn\",\"message\":\"High CPU usage detected\",\"service\":\"test-api\",\"threshold\":\"80%\",\"timestamp\":\"2025-07-24 13:32:30\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T08:02:43.498Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"1555","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"errors":[{"address":"::1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"},{"address":"127.0.0.1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"}],"level":"error","message":"Error in log upload:","name":"AggregateError","request":{"_currentRequest":{"_closed":true,"_contentLength":1555,"_defaultKeepAlive":true,"_ended":false,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 1555\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":"[Circular]","_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":null,"reusedSocket":false,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"1555","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[{"data":{"data":[123,34,108,111,103,115,34,58,91,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,50,58,51,48,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,83,121,115,116,101,109,32,109,101,116,114,105,99,115,32,99,111,108,108,101,99,116,101,100,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,112,112,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,99,112,117,34,58,34,57,57,46,57,52,37,34,44,34,100,105,115,107,34,58,34,50,52,46,56,54,37,34,44,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,109,111,114,121,34,58,34,56,50,46,48,49,37,34,44,34,109,101,115,115,97,103,101,34,58,34,83,121,115,116,101,109,32,109,101,116,114,105,99,115,32,99,111,108,108,101,99,116,101,100,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,51,50,58,51,48,34,44,34,116,121,112,101,34,58,34,115,121,115,116,101,109,95,109,101,116,114,105,99,115,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,50,58,51,48,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,87,65,82,78,34,44,34,109,101,115,115,97,103,101,34,58,34,72,105,103,104,32,67,80,85,32,117,115,97,103,101,32,100,101,116,101,99,116,101,100,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,112,112,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,99,112,117,34,58,34,57,57,46,57,52,37,34,44,34,108,101,118,101,108,34,58,34,119,97,114,110,34,44,34,109,101,115,115,97,103,101,34,58,34,72,105,103,104,32,67,80,85,32,117,115,97,103,101,32,100,101,116,101,99,116,101,100,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,116,104,114,101,115,104,111,108,100,34,58,34,56,48,37,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,51,50,58,51,48,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,50,58,51,48,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,83,121,115,116,101,109,32,109,101,116,114,105,99,115,32,99,111,108,108,101,99,116,101,100,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,99,99,101,115,115,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,99,112,117,34,58,34,57,57,46,57,52,37,34,44,34,100,105,115,107,34,58,34,50,52,46,56,54,37,34,44,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,109,111,114,121,34,58,34,56,50,46,48,49,37,34,44,34,109,101,115,115,97,103,101,34,58,34,83,121,115,116,101,109,32,109,101,116,114,105,99,115,32,99,111,108,108,101,99,116,101,100,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,51,50,58,51,48,34,44,34,116,121,112,101,34,58,34,115,121,115,116,101,109,95,109,101,116,114,105,99,115,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,50,58,51,48,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,87,65,82,78,34,44,34,109,101,115,115,97,103,101,34,58,34,72,105,103,104,32,67,80,85,32,117,115,97,103,101,32,100,101,116,101,99,116,101,100,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,99,99,101,115,115,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,99,112,117,34,58,34,57,57,46,57,52,37,34,44,34,108,101,118,101,108,34,58,34,119,97,114,110,34,44,34,109,101,115,115,97,103,101,34,58,34,72,105,103,104,32,67,80,85,32,117,115,97,103,101,32,100,101,116,101,99,116,101,100,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,116,104,114,101,115,104,111,108,100,34,58,34,56,48,37,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,51,50,58,51,48,34,125,125,93,44,34,97,103,101,110,116,34,58,123,34,118,101,114,115,105,111,110,34,58,34,49,46,48,46,48,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,50,58,52,51,46,52,57,56,90,34,125,125],"type":"Buffer"}}],"_requestBodyLength":1555,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"service":"logvista-agent","stack":"AggregateError\n at AxiosError.from (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:899:14)\n at RedirectableRequest.handleRequestError (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3228:25)\n at RedirectableRequest.emit (node:events:519:35)\n at eventHandlers. (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\follow-redirects\\index.js:49:24)\n at ClientRequest.emit (node:events:507:28)\n at emitErrorEvent (node:_http_client:104:11)\n at Socket.socketErrorListener (node:_http_client:518:5)\n at Socket.emit (node:events:507:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:42:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:138:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:37:7)","timestamp":"2025-07-24T08:02:43.506Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for metrics - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:03:09.508Z"} {"level":"info","message":"Saved metrics data offline: metrics-2025-07-24T08-03-09-509Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:03:09.509Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:03:09.510Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for metrics - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:03:10.524Z"} {"level":"info","message":"Saved metrics data offline: metrics-2025-07-24T08-03-10-526Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:03:10.527Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:03:10.528Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:03:10.897Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-03-10-898Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:03:10.899Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:03:10.899Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:03:11.909Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-03-11-911Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:03:11.912Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:03:11.912Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for metrics - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:03:12.538Z"} {"level":"info","message":"Saved metrics data offline: metrics-2025-07-24T08-03-12-539Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:03:12.540Z"} {"cause":{"code":"ECONNREFUSED"},"code":"ECONNREFUSED","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"metrics\":[{\"type\":\"system\",\"cpuUsage\":21.407837809383913,\"ramUsage\":10920.359375,\"ramTotal\":12163.59765625,\"diskUsage\":455361.19921875,\"diskTotal\":1441429.3046875,\"networkIn\":0.0048124663683832905,\"networkOut\":0.007911308444276148,\"processCount\":292,\"loadAverage\":0,\"timestamp\":\"2025-07-24T08:03:05.984Z\"},{\"type\":\"project\",\"projectName\":\"test-api-project\",\"timestamp\":\"2025-07-24T08:03:05.984Z\",\"projectDiskUsage\":7.488396644592285}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T08:03:12.535Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"504","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/metrics","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"errors":[{"address":"::1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"},{"address":"127.0.0.1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"}],"level":"error","message":"Error in metrics collection and upload:","name":"AggregateError","request":{"_currentRequest":{"_closed":true,"_contentLength":504,"_defaultKeepAlive":true,"_ended":false,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/metrics HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 504\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":"[Circular]","_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/metrics","protocol":"http:","res":null,"reusedSocket":false,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"_currentUrl":"http://localhost:3001/api/metrics","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"504","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/metrics","pathname":"/api/metrics","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[{"data":{"data":[123,34,109,101,116,114,105,99,115,34,58,91,123,34,116,121,112,101,34,58,34,115,121,115,116,101,109,34,44,34,99,112,117,85,115,97,103,101,34,58,50,49,46,52,48,55,56,51,55,56,48,57,51,56,51,57,49,51,44,34,114,97,109,85,115,97,103,101,34,58,49,48,57,50,48,46,51,53,57,51,55,53,44,34,114,97,109,84,111,116,97,108,34,58,49,50,49,54,51,46,53,57,55,54,53,54,50,53,44,34,100,105,115,107,85,115,97,103,101,34,58,52,53,53,51,54,49,46,49,57,57,50,49,56,55,53,44,34,100,105,115,107,84,111,116,97,108,34,58,49,52,52,49,52,50,57,46,51,48,52,54,56,55,53,44,34,110,101,116,119,111,114,107,73,110,34,58,48,46,48,48,52,56,49,50,52,54,54,51,54,56,51,56,51,50,57,48,53,44,34,110,101,116,119,111,114,107,79,117,116,34,58,48,46,48,48,55,57,49,49,51,48,56,52,52,52,50,55,54,49,52,56,44,34,112,114,111,99,101,115,115,67,111,117,110,116,34,58,50,57,50,44,34,108,111,97,100,65,118,101,114,97,103,101,34,58,48,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,51,58,48,53,46,57,56,52,90,34,125,44,123,34,116,121,112,101,34,58,34,112,114,111,106,101,99,116,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,51,58,48,53,46,57,56,52,90,34,44,34,112,114,111,106,101,99,116,68,105,115,107,85,115,97,103,101,34,58,55,46,52,56,56,51,57,54,54,52,52,53,57,50,50,56,53,125,93,44,34,97,103,101,110,116,34,58,123,34,118,101,114,115,105,111,110,34,58,34,49,46,48,46,48,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,51,58,49,50,46,53,51,53,90,34,125,125],"type":"Buffer"}}],"_requestBodyLength":504,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"service":"logvista-agent","stack":"AggregateError\n at AxiosError.from (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:899:14)\n at RedirectableRequest.handleRequestError (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3228:25)\n at RedirectableRequest.emit (node:events:519:35)\n at eventHandlers. (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\follow-redirects\\index.js:49:24)\n at ClientRequest.emit (node:events:507:28)\n at emitErrorEvent (node:_http_client:104:11)\n at Socket.socketErrorListener (node:_http_client:518:5)\n at Socket.emit (node:events:507:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:21:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.collectAndUploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:124:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:28:7)","timestamp":"2025-07-24T08:03:12.540Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:03:13.925Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-03-13-926Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:03:13.928Z"} {"cause":{"code":"ECONNREFUSED"},"code":"ECONNREFUSED","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T08:03:00.000Z\",\"level\":\"INFO\",\"message\":\"Starting scheduled API request\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"Starting scheduled API request\",\"requestId\":1753344180480,\"service\":\"test-api\",\"statusMessage\":\"Cache performance optimal\",\"targetUrl\":\"https://jsonplaceholder.typicode.com/posts/1\",\"timestamp\":\"2025-07-24 13:33:00\"}},{\"timestamp\":\"2025-07-24T08:03:00.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"89.82%\",\"disk\":\"26.58%\",\"level\":\"info\",\"memory\":\"49.42%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:33:00\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T08:03:00.000Z\",\"level\":\"WARN\",\"message\":\"High CPU usage detected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"89.82%\",\"level\":\"warn\",\"message\":\"High CPU usage detected\",\"service\":\"test-api\",\"threshold\":\"80%\",\"timestamp\":\"2025-07-24 13:33:00\"}},{\"timestamp\":\"2025-07-24T08:03:01.000Z\",\"level\":\"INFO\",\"message\":\"API request successful\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"dataSize\":275,\"level\":\"info\",\"message\":\"API request successful\",\"requestId\":1753344180480,\"responseTime\":\"625ms\",\"service\":\"test-api\",\"status\":\"Cache performance optimal\",\"statusCode\":200,\"timestamp\":\"2025-07-24 13:33:01\",\"url\":\"https://jsonplaceholder.typicode.com/posts/1\"}},{\"timestamp\":\"2025-07-24T08:03:00.000Z\",\"level\":\"INFO\",\"message\":\"Starting scheduled API request\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"Starting scheduled API request\",\"requestId\":1753344180480,\"service\":\"test-api\",\"statusMessage\":\"Cache performance optimal\",\"targetUrl\":\"https://jsonplaceholder.typicode.com/posts/1\",\"timestamp\":\"2025-07-24 13:33:00\"}},{\"timestamp\":\"2025-07-24T08:03:00.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"89.82%\",\"disk\":\"26.58%\",\"level\":\"info\",\"memory\":\"49.42%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:33:00\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T08:03:00.000Z\",\"level\":\"WARN\",\"message\":\"High CPU usage detected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"89.82%\",\"level\":\"warn\",\"message\":\"High CPU usage detected\",\"service\":\"test-api\",\"threshold\":\"80%\",\"timestamp\":\"2025-07-24 13:33:00\"}},{\"timestamp\":\"2025-07-24T08:03:01.000Z\",\"level\":\"INFO\",\"message\":\"API request successful\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"dataSize\":275,\"level\":\"info\",\"message\":\"API request successful\",\"requestId\":1753344180480,\"responseTime\":\"625ms\",\"service\":\"test-api\",\"status\":\"Cache performance optimal\",\"statusCode\":200,\"timestamp\":\"2025-07-24 13:33:01\",\"url\":\"https://jsonplaceholder.typicode.com/posts/1\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T08:03:13.922Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"3441","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"errors":[{"address":"::1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"},{"address":"127.0.0.1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"}],"level":"error","message":"Error in log upload:","name":"AggregateError","request":{"_currentRequest":{"_closed":true,"_contentLength":3441,"_defaultKeepAlive":true,"_ended":false,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 3441\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":"[Circular]","_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":null,"reusedSocket":false,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"3441","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[{"data":{"data":[123,34,108,111,103,115,34,58,91,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,51,58,48,48,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,83,116,97,114,116,105,110,103,32,115,99,104,101,100,117,108,101,100,32,65,80,73,32,114,101,113,117,101,115,116,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,99,99,101,115,115,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,115,115,97,103,101,34,58,34,83,116,97,114,116,105,110,103,32,115,99,104,101,100,117,108,101,100,32,65,80,73,32,114,101,113,117,101,115,116,34,44,34,114,101,113,117,101,115,116,73,100,34,58,49,55,53,51,51,52,52,49,56,48,52,56,48,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,115,116,97,116,117,115,77,101,115,115,97,103,101,34,58,34,67,97,99,104,101,32,112,101,114,102,111,114,109,97,110,99,101,32,111,112,116,105,109,97,108,34,44,34,116,97,114,103,101,116,85,114,108,34,58,34,104,116,116,112,115,58,47,47,106,115,111,110,112,108,97,99,101,104,111,108,100,101,114,46,116,121,112,105,99,111,100,101,46,99,111,109,47,112,111,115,116,115,47,49,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,51,51,58,48,48,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,51,58,48,48,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,83,121,115,116,101,109,32,109,101,116,114,105,99,115,32,99,111,108,108,101,99,116,101,100,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,99,99,101,115,115,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,99,112,117,34,58,34,56,57,46,56,50,37,34,44,34,100,105,115,107,34,58,34,50,54,46,53,56,37,34,44,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,109,111,114,121,34,58,34,52,57,46,52,50,37,34,44,34,109,101,115,115,97,103,101,34,58,34,83,121,115,116,101,109,32,109,101,116,114,105,99,115,32,99,111,108,108,101,99,116,101,100,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,51,51,58,48,48,34,44,34,116,121,112,101,34,58,34,115,121,115,116,101,109,95,109,101,116,114,105,99,115,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,51,58,48,48,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,87,65,82,78,34,44,34,109,101,115,115,97,103,101,34,58,34,72,105,103,104,32,67,80,85,32,117,115,97,103,101,32,100,101,116,101,99,116,101,100,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,99,99,101,115,115,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,99,112,117,34,58,34,56,57,46,56,50,37,34,44,34,108,101,118,101,108,34,58,34,119,97,114,110,34,44,34,109,101,115,115,97,103,101,34,58,34,72,105,103,104,32,67,80,85,32,117,115,97,103,101,32,100,101,116,101,99,116,101,100,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,116,104,114,101,115,104,111,108,100,34,58,34,56,48,37,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,51,51,58,48,48,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,51,58,48,49,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,65,80,73,32,114,101,113,117,101,115,116,32,115,117,99,99,101,115,115,102,117,108,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,99,99,101,115,115,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,100,97,116,97,83,105,122,101,34,58,50,55,53,44,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,115,115,97,103,101,34,58,34,65,80,73,32,114,101,113,117,101,115,116,32,115,117,99,99,101,115,115,102,117,108,34,44,34,114,101,113,117,101,115,116,73,100,34,58,49,55,53,51,51,52,52,49,56,48,52,56,48,44,34,114,101,115,112,111,110,115,101,84,105,109,101,34,58,34,54,50,53,109,115,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,115,116,97,116,117,115,34,58,34,67,97,99,104,101,32,112,101,114,102,111,114,109,97,110,99,101,32,111,112,116,105,109,97,108,34,44,34,115,116,97,116,117,115,67,111,100,101,34,58,50,48,48,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,51,51,58,48,49,34,44,34,117,114,108,34,58,34,104,116,116,112,115,58,47,47,106,115,111,110,112,108,97,99,101,104,111,108,100,101,114,46,116,121,112,105,99,111,100,101,46,99,111,109,47,112,111,115,116,115,47,49,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,51,58,48,48,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,83,116,97,114,116,105,110,103,32,115,99,104,101,100,117,108,101,100,32,65,80,73,32,114,101,113,117,101,115,116,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,112,112,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,115,115,97,103,101,34,58,34,83,116,97,114,116,105,110,103,32,115,99,104,101,100,117,108,101,100,32,65,80,73,32,114,101,113,117,101,115,116,34,44,34,114,101,113,117,101,115,116,73,100,34,58,49,55,53,51,51,52,52,49,56,48,52,56,48,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,115,116,97,116,117,115,77,101,115,115,97,103,101,34,58,34,67,97,99,104,101,32,112,101,114,102,111,114,109,97,110,99,101,32,111,112,116,105,109,97,108,34,44,34,116,97,114,103,101,116,85,114,108,34,58,34,104,116,116,112,115,58,47,47,106,115,111,110,112,108,97,99,101,104,111,108,100,101,114,46,116,121,112,105,99,111,100,101,46,99,111,109,47,112,111,115,116,115,47,49,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,51,51,58,48,48,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,51,58,48,48,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,83,121,115,116,101,109,32,109,101,116,114,105,99,115,32,99,111,108,108,101,99,116,101,100,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,112,112,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,99,112,117,34,58,34,56,57,46,56,50,37,34,44,34,100,105,115,107,34,58,34,50,54,46,53,56,37,34,44,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,109,111,114,121,34,58,34,52,57,46,52,50,37,34,44,34,109,101,115,115,97,103,101,34,58,34,83,121,115,116,101,109,32,109,101,116,114,105,99,115,32,99,111,108,108,101,99,116,101,100,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,51,51,58,48,48,34,44,34,116,121,112,101,34,58,34,115,121,115,116,101,109,95,109,101,116,114,105,99,115,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,51,58,48,48,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,87,65,82,78,34,44,34,109,101,115,115,97,103,101,34,58,34,72,105,103,104,32,67,80,85,32,117,115,97,103,101,32,100,101,116,101,99,116,101,100,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,112,112,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,99,112,117,34,58,34,56,57,46,56,50,37,34,44,34,108,101,118,101,108,34,58,34,119,97,114,110,34,44,34,109,101,115,115,97,103,101,34,58,34,72,105,103,104,32,67,80,85,32,117,115,97,103,101,32,100,101,116,101,99,116,101,100,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,116,104,114,101,115,104,111,108,100,34,58,34,56,48,37,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,51,51,58,48,48,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,51,58,48,49,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,65,80,73,32,114,101,113,117,101,115,116,32,115,117,99,99,101,115,115,102,117,108,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,112,112,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,100,97,116,97,83,105,122,101,34,58,50,55,53,44,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,115,115,97,103,101,34,58,34,65,80,73,32,114,101,113,117,101,115,116,32,115,117,99,99,101,115,115,102,117,108,34,44,34,114,101,113,117,101,115,116,73,100,34,58,49,55,53,51,51,52,52,49,56,48,52,56,48,44,34,114,101,115,112,111,110,115,101,84,105,109,101,34,58,34,54,50,53,109,115,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,115,116,97,116,117,115,34,58,34,67,97,99,104,101,32,112,101,114,102,111,114,109,97,110,99,101,32,111,112,116,105,109,97,108,34,44,34,115,116,97,116,117,115,67,111,100,101,34,58,50,48,48,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,51,51,58,48,49,34,44,34,117,114,108,34,58,34,104,116,116,112,115,58,47,47,106,115,111,110,112,108,97,99,101,104,111,108,100,101,114,46,116,121,112,105,99,111,100,101,46,99,111,109,47,112,111,115,116,115,47,49,34,125,125,93,44,34,97,103,101,110,116,34,58,123,34,118,101,114,115,105,111,110,34,58,34,49,46,48,46,48,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,51,58,49,51,46,57,50,50,90,34,125,125],"type":"Buffer"}}],"_requestBodyLength":3441,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"service":"logvista-agent","stack":"AggregateError\n at AxiosError.from (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:899:14)\n at RedirectableRequest.handleRequestError (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3228:25)\n at RedirectableRequest.emit (node:events:519:35)\n at eventHandlers. (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\follow-redirects\\index.js:49:24)\n at ClientRequest.emit (node:events:507:28)\n at emitErrorEvent (node:_http_client:104:11)\n at Socket.socketErrorListener (node:_http_client:518:5)\n at Socket.emit (node:events:507:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:42:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:138:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:37:7)","timestamp":"2025-07-24T08:03:13.928Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for metrics - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:03:40.072Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:03:40.078Z"} {"level":"info","message":"Saved metrics data offline: metrics-2025-07-24T08-03-40-075Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:03:40.079Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:03:40.080Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-03-40-081Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:03:40.082Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:03:40.083Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for metrics - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:03:41.086Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:03:41.088Z"} {"level":"info","message":"Saved metrics data offline: metrics-2025-07-24T08-03-41-089Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:03:41.089Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:03:41.090Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-03-41-089Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:03:41.091Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:03:41.091Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for metrics - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:03:43.098Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:03:43.101Z"} {"level":"info","message":"Saved metrics data offline: metrics-2025-07-24T08-03-43-102Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:03:43.105Z"} {"cause":{"code":"ECONNREFUSED"},"code":"ECONNREFUSED","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"metrics\":[{\"type\":\"system\",\"cpuUsage\":21.689954442493192,\"ramUsage\":10953.01953125,\"ramTotal\":12163.59765625,\"diskUsage\":455361.32421875,\"diskTotal\":1441429.3046875,\"networkIn\":0.007283223784219191,\"networkOut\":0.021093973536726537,\"processCount\":292,\"loadAverage\":0,\"timestamp\":\"2025-07-24T08:03:35.548Z\"},{\"type\":\"project\",\"projectName\":\"test-api-project\",\"timestamp\":\"2025-07-24T08:03:35.548Z\",\"projectDiskUsage\":7.48874568939209}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T08:03:43.091Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"504","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/metrics","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"errors":[{"address":"::1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"},{"address":"127.0.0.1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"}],"level":"error","message":"Error in metrics collection and upload:","name":"AggregateError","request":{"_currentRequest":{"_closed":true,"_contentLength":504,"_defaultKeepAlive":true,"_ended":false,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/metrics HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 504\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":"[Circular]","_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/metrics","protocol":"http:","res":null,"reusedSocket":false,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"_currentUrl":"http://localhost:3001/api/metrics","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"504","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/metrics","pathname":"/api/metrics","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[{"data":{"data":[123,34,109,101,116,114,105,99,115,34,58,91,123,34,116,121,112,101,34,58,34,115,121,115,116,101,109,34,44,34,99,112,117,85,115,97,103,101,34,58,50,49,46,54,56,57,57,53,52,52,52,50,52,57,51,49,57,50,44,34,114,97,109,85,115,97,103,101,34,58,49,48,57,53,51,46,48,49,57,53,51,49,50,53,44,34,114,97,109,84,111,116,97,108,34,58,49,50,49,54,51,46,53,57,55,54,53,54,50,53,44,34,100,105,115,107,85,115,97,103,101,34,58,52,53,53,51,54,49,46,51,50,52,50,49,56,55,53,44,34,100,105,115,107,84,111,116,97,108,34,58,49,52,52,49,52,50,57,46,51,48,52,54,56,55,53,44,34,110,101,116,119,111,114,107,73,110,34,58,48,46,48,48,55,50,56,51,50,50,51,55,56,52,50,49,57,49,57,49,44,34,110,101,116,119,111,114,107,79,117,116,34,58,48,46,48,50,49,48,57,51,57,55,51,53,51,54,55,50,54,53,51,55,44,34,112,114,111,99,101,115,115,67,111,117,110,116,34,58,50,57,50,44,34,108,111,97,100,65,118,101,114,97,103,101,34,58,48,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,51,58,51,53,46,53,52,56,90,34,125,44,123,34,116,121,112,101,34,58,34,112,114,111,106,101,99,116,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,51,58,51,53,46,53,52,56,90,34,44,34,112,114,111,106,101,99,116,68,105,115,107,85,115,97,103,101,34,58,55,46,52,56,56,55,52,53,54,56,57,51,57,50,48,57,125,93,44,34,97,103,101,110,116,34,58,123,34,118,101,114,115,105,111,110,34,58,34,49,46,48,46,48,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,51,58,52,51,46,48,57,49,90,34,125,125],"type":"Buffer"}}],"_requestBodyLength":504,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"service":"logvista-agent","stack":"AggregateError\n at AxiosError.from (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:899:14)\n at RedirectableRequest.handleRequestError (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3228:25)\n at RedirectableRequest.emit (node:events:519:35)\n at eventHandlers. (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\follow-redirects\\index.js:49:24)\n at ClientRequest.emit (node:events:507:28)\n at emitErrorEvent (node:_http_client:104:11)\n at Socket.socketErrorListener (node:_http_client:518:5)\n at Socket.emit (node:events:507:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:21:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.collectAndUploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:124:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:28:7)","timestamp":"2025-07-24T08:03:43.106Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-03-43-103Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:03:43.109Z"} {"cause":{"code":"ECONNREFUSED"},"code":"ECONNREFUSED","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T08:03:30.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"33.95%\",\"disk\":\"32.27%\",\"level\":\"info\",\"memory\":\"17.25%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:33:30\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T08:03:30.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"33.95%\",\"disk\":\"32.27%\",\"level\":\"info\",\"memory\":\"17.25%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:33:30\",\"type\":\"system_metrics\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T08:03:43.094Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"858","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"errors":[{"address":"::1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"},{"address":"127.0.0.1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"}],"level":"error","message":"Error in log upload:","name":"AggregateError","request":{"_currentRequest":{"_closed":true,"_contentLength":858,"_defaultKeepAlive":true,"_ended":false,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 858\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":"[Circular]","_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":null,"reusedSocket":false,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"858","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[{"data":{"data":[123,34,108,111,103,115,34,58,91,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,51,58,51,48,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,83,121,115,116,101,109,32,109,101,116,114,105,99,115,32,99,111,108,108,101,99,116,101,100,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,112,112,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,99,112,117,34,58,34,51,51,46,57,53,37,34,44,34,100,105,115,107,34,58,34,51,50,46,50,55,37,34,44,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,109,111,114,121,34,58,34,49,55,46,50,53,37,34,44,34,109,101,115,115,97,103,101,34,58,34,83,121,115,116,101,109,32,109,101,116,114,105,99,115,32,99,111,108,108,101,99,116,101,100,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,51,51,58,51,48,34,44,34,116,121,112,101,34,58,34,115,121,115,116,101,109,95,109,101,116,114,105,99,115,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,51,58,51,48,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,83,121,115,116,101,109,32,109,101,116,114,105,99,115,32,99,111,108,108,101,99,116,101,100,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,99,99,101,115,115,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,99,112,117,34,58,34,51,51,46,57,53,37,34,44,34,100,105,115,107,34,58,34,51,50,46,50,55,37,34,44,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,109,111,114,121,34,58,34,49,55,46,50,53,37,34,44,34,109,101,115,115,97,103,101,34,58,34,83,121,115,116,101,109,32,109,101,116,114,105,99,115,32,99,111,108,108,101,99,116,101,100,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,51,51,58,51,48,34,44,34,116,121,112,101,34,58,34,115,121,115,116,101,109,95,109,101,116,114,105,99,115,34,125,125,93,44,34,97,103,101,110,116,34,58,123,34,118,101,114,115,105,111,110,34,58,34,49,46,48,46,48,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,51,58,52,51,46,48,57,52,90,34,125,125],"type":"Buffer"}}],"_requestBodyLength":858,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"service":"logvista-agent","stack":"AggregateError\n at AxiosError.from (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:899:14)\n at RedirectableRequest.handleRequestError (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3228:25)\n at RedirectableRequest.emit (node:events:519:35)\n at eventHandlers. (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\follow-redirects\\index.js:49:24)\n at ClientRequest.emit (node:events:507:28)\n at emitErrorEvent (node:_http_client:104:11)\n at Socket.socketErrorListener (node:_http_client:518:5)\n at Socket.emit (node:events:507:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:42:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:138:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:37:7)","timestamp":"2025-07-24T08:03:43.110Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for metrics - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:04:09.317Z"} {"level":"info","message":"Saved metrics data offline: metrics-2025-07-24T08-04-09-354Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:04:09.393Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:04:09.394Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:04:10.318Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-04-10-319Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:04:10.320Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:04:10.320Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for metrics - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:04:10.413Z"} {"level":"info","message":"Saved metrics data offline: metrics-2025-07-24T08-04-10-414Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:04:10.416Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:04:10.416Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:04:11.326Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-04-11-327Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:04:11.329Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:04:11.329Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for metrics - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:04:12.427Z"} {"level":"info","message":"Saved metrics data offline: metrics-2025-07-24T08-04-12-430Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:04:12.433Z"} {"cause":{"code":"ECONNREFUSED"},"code":"ECONNREFUSED","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"metrics\":[{\"type\":\"system\",\"cpuUsage\":30.08413414007197,\"ramUsage\":10839.515625,\"ramTotal\":12163.59765625,\"diskUsage\":455361.8125,\"diskTotal\":1441429.3046875,\"networkIn\":0.009894952848268647,\"networkOut\":0.022213371899806954,\"processCount\":290,\"loadAverage\":0,\"timestamp\":\"2025-07-24T08:04:05.878Z\"},{\"type\":\"project\",\"projectName\":\"test-api-project\",\"timestamp\":\"2025-07-24T08:04:05.878Z\",\"projectDiskUsage\":7.490391731262207}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T08:04:12.419Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"498","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/metrics","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"errors":[{"address":"::1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"},{"address":"127.0.0.1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"}],"level":"error","message":"Error in metrics collection and upload:","name":"AggregateError","request":{"_currentRequest":{"_closed":true,"_contentLength":498,"_defaultKeepAlive":true,"_ended":false,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/metrics HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 498\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":"[Circular]","_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/metrics","protocol":"http:","res":null,"reusedSocket":false,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"_currentUrl":"http://localhost:3001/api/metrics","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"498","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/metrics","pathname":"/api/metrics","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[{"data":{"data":[123,34,109,101,116,114,105,99,115,34,58,91,123,34,116,121,112,101,34,58,34,115,121,115,116,101,109,34,44,34,99,112,117,85,115,97,103,101,34,58,51,48,46,48,56,52,49,51,52,49,52,48,48,55,49,57,55,44,34,114,97,109,85,115,97,103,101,34,58,49,48,56,51,57,46,53,49,53,54,50,53,44,34,114,97,109,84,111,116,97,108,34,58,49,50,49,54,51,46,53,57,55,54,53,54,50,53,44,34,100,105,115,107,85,115,97,103,101,34,58,52,53,53,51,54,49,46,56,49,50,53,44,34,100,105,115,107,84,111,116,97,108,34,58,49,52,52,49,52,50,57,46,51,48,52,54,56,55,53,44,34,110,101,116,119,111,114,107,73,110,34,58,48,46,48,48,57,56,57,52,57,53,50,56,52,56,50,54,56,54,52,55,44,34,110,101,116,119,111,114,107,79,117,116,34,58,48,46,48,50,50,50,49,51,51,55,49,56,57,57,56,48,54,57,53,52,44,34,112,114,111,99,101,115,115,67,111,117,110,116,34,58,50,57,48,44,34,108,111,97,100,65,118,101,114,97,103,101,34,58,48,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,52,58,48,53,46,56,55,56,90,34,125,44,123,34,116,121,112,101,34,58,34,112,114,111,106,101,99,116,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,52,58,48,53,46,56,55,56,90,34,44,34,112,114,111,106,101,99,116,68,105,115,107,85,115,97,103,101,34,58,55,46,52,57,48,51,57,49,55,51,49,50,54,50,50,48,55,125,93,44,34,97,103,101,110,116,34,58,123,34,118,101,114,115,105,111,110,34,58,34,49,46,48,46,48,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,52,58,49,50,46,52,49,57,90,34,125,125],"type":"Buffer"}}],"_requestBodyLength":498,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"service":"logvista-agent","stack":"AggregateError\n at AxiosError.from (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:899:14)\n at RedirectableRequest.handleRequestError (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3228:25)\n at RedirectableRequest.emit (node:events:519:35)\n at eventHandlers. (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\follow-redirects\\index.js:49:24)\n at ClientRequest.emit (node:events:507:28)\n at emitErrorEvent (node:_http_client:104:11)\n at Socket.socketErrorListener (node:_http_client:518:5)\n at Socket.emit (node:events:507:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:21:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.collectAndUploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:124:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:28:7)","timestamp":"2025-07-24T08:04:12.435Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for logs - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:04:13.338Z"} {"level":"info","message":"Saved logs data offline: logs-2025-07-24T08-04-13-338Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:04:13.339Z"} {"cause":{"code":"ECONNREFUSED"},"code":"ECONNREFUSED","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"logs\":[{\"timestamp\":\"2025-07-24T08:04:00.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"69.97%\",\"disk\":\"79.44%\",\"level\":\"info\",\"memory\":\"19.32%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:34:00\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T08:04:00.000Z\",\"level\":\"INFO\",\"message\":\"Database backup completed\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"eventId\":1753344240077,\"level\":\"info\",\"message\":\"Database backup completed\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:34:00\",\"type\":\"scheduled_event\"}},{\"timestamp\":\"2025-07-24T08:04:00.000Z\",\"level\":\"INFO\",\"message\":\"System metrics collected\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"cpu\":\"69.97%\",\"disk\":\"79.44%\",\"level\":\"info\",\"memory\":\"19.32%\",\"message\":\"System metrics collected\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:34:00\",\"type\":\"system_metrics\"}},{\"timestamp\":\"2025-07-24T08:04:00.000Z\",\"level\":\"INFO\",\"message\":\"Database backup completed\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"eventId\":1753344240077,\"level\":\"info\",\"message\":\"Database backup completed\",\"service\":\"test-api\",\"timestamp\":\"2025-07-24 13:34:00\",\"type\":\"scheduled_event\"}},{\"timestamp\":\"2025-07-24T08:04:00.000Z\",\"level\":\"INFO\",\"message\":\"Starting scheduled API request\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"Starting scheduled API request\",\"requestId\":1753344240985,\"service\":\"test-api\",\"statusMessage\":\"System running normally\",\"targetUrl\":\"https://jsonplaceholder.typicode.com/posts/1\",\"timestamp\":\"2025-07-24 13:34:00\"}},{\"timestamp\":\"2025-07-24T08:04:01.000Z\",\"level\":\"INFO\",\"message\":\"API request successful\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"dataSize\":275,\"level\":\"info\",\"message\":\"API request successful\",\"requestId\":1753344240985,\"responseTime\":\"542ms\",\"service\":\"test-api\",\"status\":\"System running normally\",\"statusCode\":200,\"timestamp\":\"2025-07-24 13:34:01\",\"url\":\"https://jsonplaceholder.typicode.com/posts/1\"}},{\"timestamp\":\"2025-07-24T08:04:00.000Z\",\"level\":\"INFO\",\"message\":\"Starting scheduled API request\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"level\":\"info\",\"message\":\"Starting scheduled API request\",\"requestId\":1753344240985,\"service\":\"test-api\",\"statusMessage\":\"System running normally\",\"targetUrl\":\"https://jsonplaceholder.typicode.com/posts/1\",\"timestamp\":\"2025-07-24 13:34:00\"}},{\"timestamp\":\"2025-07-24T08:04:01.000Z\",\"level\":\"INFO\",\"message\":\"API request successful\",\"source\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\",\"projectName\":\"test-api-project\",\"metadata\":{\"dataSize\":275,\"level\":\"info\",\"message\":\"API request successful\",\"requestId\":1753344240985,\"responseTime\":\"542ms\",\"service\":\"test-api\",\"status\":\"System running normally\",\"statusCode\":200,\"timestamp\":\"2025-07-24 13:34:01\",\"url\":\"https://jsonplaceholder.typicode.com/posts/1\"}}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T08:04:13.335Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"3473","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/logs","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"errors":[{"address":"::1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"},{"address":"127.0.0.1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"}],"level":"error","message":"Error in log upload:","name":"AggregateError","request":{"_currentRequest":{"_closed":true,"_contentLength":3473,"_defaultKeepAlive":true,"_ended":false,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/logs HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 3473\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":"[Circular]","_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/logs","protocol":"http:","res":null,"reusedSocket":false,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"_currentUrl":"http://localhost:3001/api/logs","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"3473","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/logs","pathname":"/api/logs","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[{"data":{"data":[123,34,108,111,103,115,34,58,91,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,52,58,48,48,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,83,121,115,116,101,109,32,109,101,116,114,105,99,115,32,99,111,108,108,101,99,116,101,100,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,112,112,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,99,112,117,34,58,34,54,57,46,57,55,37,34,44,34,100,105,115,107,34,58,34,55,57,46,52,52,37,34,44,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,109,111,114,121,34,58,34,49,57,46,51,50,37,34,44,34,109,101,115,115,97,103,101,34,58,34,83,121,115,116,101,109,32,109,101,116,114,105,99,115,32,99,111,108,108,101,99,116,101,100,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,51,52,58,48,48,34,44,34,116,121,112,101,34,58,34,115,121,115,116,101,109,95,109,101,116,114,105,99,115,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,52,58,48,48,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,68,97,116,97,98,97,115,101,32,98,97,99,107,117,112,32,99,111,109,112,108,101,116,101,100,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,112,112,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,101,118,101,110,116,73,100,34,58,49,55,53,51,51,52,52,50,52,48,48,55,55,44,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,115,115,97,103,101,34,58,34,68,97,116,97,98,97,115,101,32,98,97,99,107,117,112,32,99,111,109,112,108,101,116,101,100,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,51,52,58,48,48,34,44,34,116,121,112,101,34,58,34,115,99,104,101,100,117,108,101,100,95,101,118,101,110,116,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,52,58,48,48,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,83,121,115,116,101,109,32,109,101,116,114,105,99,115,32,99,111,108,108,101,99,116,101,100,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,99,99,101,115,115,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,99,112,117,34,58,34,54,57,46,57,55,37,34,44,34,100,105,115,107,34,58,34,55,57,46,52,52,37,34,44,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,109,111,114,121,34,58,34,49,57,46,51,50,37,34,44,34,109,101,115,115,97,103,101,34,58,34,83,121,115,116,101,109,32,109,101,116,114,105,99,115,32,99,111,108,108,101,99,116,101,100,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,51,52,58,48,48,34,44,34,116,121,112,101,34,58,34,115,121,115,116,101,109,95,109,101,116,114,105,99,115,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,52,58,48,48,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,68,97,116,97,98,97,115,101,32,98,97,99,107,117,112,32,99,111,109,112,108,101,116,101,100,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,99,99,101,115,115,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,101,118,101,110,116,73,100,34,58,49,55,53,51,51,52,52,50,52,48,48,55,55,44,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,115,115,97,103,101,34,58,34,68,97,116,97,98,97,115,101,32,98,97,99,107,117,112,32,99,111,109,112,108,101,116,101,100,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,51,52,58,48,48,34,44,34,116,121,112,101,34,58,34,115,99,104,101,100,117,108,101,100,95,101,118,101,110,116,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,52,58,48,48,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,83,116,97,114,116,105,110,103,32,115,99,104,101,100,117,108,101,100,32,65,80,73,32,114,101,113,117,101,115,116,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,112,112,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,115,115,97,103,101,34,58,34,83,116,97,114,116,105,110,103,32,115,99,104,101,100,117,108,101,100,32,65,80,73,32,114,101,113,117,101,115,116,34,44,34,114,101,113,117,101,115,116,73,100,34,58,49,55,53,51,51,52,52,50,52,48,57,56,53,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,115,116,97,116,117,115,77,101,115,115,97,103,101,34,58,34,83,121,115,116,101,109,32,114,117,110,110,105,110,103,32,110,111,114,109,97,108,108,121,34,44,34,116,97,114,103,101,116,85,114,108,34,58,34,104,116,116,112,115,58,47,47,106,115,111,110,112,108,97,99,101,104,111,108,100,101,114,46,116,121,112,105,99,111,100,101,46,99,111,109,47,112,111,115,116,115,47,49,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,51,52,58,48,48,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,52,58,48,49,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,65,80,73,32,114,101,113,117,101,115,116,32,115,117,99,99,101,115,115,102,117,108,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,112,112,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,100,97,116,97,83,105,122,101,34,58,50,55,53,44,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,115,115,97,103,101,34,58,34,65,80,73,32,114,101,113,117,101,115,116,32,115,117,99,99,101,115,115,102,117,108,34,44,34,114,101,113,117,101,115,116,73,100,34,58,49,55,53,51,51,52,52,50,52,48,57,56,53,44,34,114,101,115,112,111,110,115,101,84,105,109,101,34,58,34,53,52,50,109,115,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,115,116,97,116,117,115,34,58,34,83,121,115,116,101,109,32,114,117,110,110,105,110,103,32,110,111,114,109,97,108,108,121,34,44,34,115,116,97,116,117,115,67,111,100,101,34,58,50,48,48,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,51,52,58,48,49,34,44,34,117,114,108,34,58,34,104,116,116,112,115,58,47,47,106,115,111,110,112,108,97,99,101,104,111,108,100,101,114,46,116,121,112,105,99,111,100,101,46,99,111,109,47,112,111,115,116,115,47,49,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,52,58,48,48,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,83,116,97,114,116,105,110,103,32,115,99,104,101,100,117,108,101,100,32,65,80,73,32,114,101,113,117,101,115,116,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,99,99,101,115,115,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,115,115,97,103,101,34,58,34,83,116,97,114,116,105,110,103,32,115,99,104,101,100,117,108,101,100,32,65,80,73,32,114,101,113,117,101,115,116,34,44,34,114,101,113,117,101,115,116,73,100,34,58,49,55,53,51,51,52,52,50,52,48,57,56,53,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,115,116,97,116,117,115,77,101,115,115,97,103,101,34,58,34,83,121,115,116,101,109,32,114,117,110,110,105,110,103,32,110,111,114,109,97,108,108,121,34,44,34,116,97,114,103,101,116,85,114,108,34,58,34,104,116,116,112,115,58,47,47,106,115,111,110,112,108,97,99,101,104,111,108,100,101,114,46,116,121,112,105,99,111,100,101,46,99,111,109,47,112,111,115,116,115,47,49,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,51,52,58,48,48,34,125,125,44,123,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,52,58,48,49,46,48,48,48,90,34,44,34,108,101,118,101,108,34,58,34,73,78,70,79,34,44,34,109,101,115,115,97,103,101,34,58,34,65,80,73,32,114,101,113,117,101,115,116,32,115,117,99,99,101,115,115,102,117,108,34,44,34,115,111,117,114,99,101,34,58,34,69,58,92,92,70,114,101,101,108,97,110,99,101,92,92,76,111,103,86,105,115,116,97,86,50,92,92,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,92,92,108,111,103,115,92,92,97,99,99,101,115,115,46,108,111,103,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,109,101,116,97,100,97,116,97,34,58,123,34,100,97,116,97,83,105,122,101,34,58,50,55,53,44,34,108,101,118,101,108,34,58,34,105,110,102,111,34,44,34,109,101,115,115,97,103,101,34,58,34,65,80,73,32,114,101,113,117,101,115,116,32,115,117,99,99,101,115,115,102,117,108,34,44,34,114,101,113,117,101,115,116,73,100,34,58,49,55,53,51,51,52,52,50,52,48,57,56,53,44,34,114,101,115,112,111,110,115,101,84,105,109,101,34,58,34,53,52,50,109,115,34,44,34,115,101,114,118,105,99,101,34,58,34,116,101,115,116,45,97,112,105,34,44,34,115,116,97,116,117,115,34,58,34,83,121,115,116,101,109,32,114,117,110,110,105,110,103,32,110,111,114,109,97,108,108,121,34,44,34,115,116,97,116,117,115,67,111,100,101,34,58,50,48,48,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,32,49,51,58,51,52,58,48,49,34,44,34,117,114,108,34,58,34,104,116,116,112,115,58,47,47,106,115,111,110,112,108,97,99,101,104,111,108,100,101,114,46,116,121,112,105,99,111,100,101,46,99,111,109,47,112,111,115,116,115,47,49,34,125,125,93,44,34,97,103,101,110,116,34,58,123,34,118,101,114,115,105,111,110,34,58,34,49,46,48,46,48,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,52,58,49,51,46,51,51,53,90,34,125,125],"type":"Buffer"}}],"_requestBodyLength":3473,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"service":"logvista-agent","stack":"AggregateError\n at AxiosError.from (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:899:14)\n at RedirectableRequest.handleRequestError (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3228:25)\n at RedirectableRequest.emit (node:events:519:35)\n at eventHandlers. (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\follow-redirects\\index.js:49:24)\n at ClientRequest.emit (node:events:507:28)\n at emitErrorEvent (node:_http_client:104:11)\n at Socket.socketErrorListener (node:_http_client:518:5)\n at Socket.emit (node:events:507:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:42:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.uploadLogs (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:138:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:37:7)","timestamp":"2025-07-24T08:04:13.340Z"} {"level":"info","message":"Received SIGINT, shutting down gracefully...","service":"logvista-agent","timestamp":"2025-07-24T08:04:24.303Z"} {"level":"info","message":"Initializing LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T08:05:00.326Z"} {"level":"info","message":"Configuration loaded successfully","service":"logvista-agent","timestamp":"2025-07-24T08:05:00.338Z"} {"level":"info","message":"Connection test successful:","service":"LogVista Central System","status":"ok","timestamp":"2025-07-24T08:05:00.389Z","version":"1.0.0"} {"level":"info","message":"LogVista Agent initialized successfully","service":"logvista-agent","timestamp":"2025-07-24T08:05:00.397Z"} {"level":"info","message":"Starting LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T08:05:00.397Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\app.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T08:05:00.400Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\error.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T08:05:00.402Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\access.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T08:05:00.403Z"} {"level":"info","message":"Started watching project logs in: E:\\Freelance\\LogVistaV2\\test-api-project","service":"logvista-agent","timestamp":"2025-07-24T08:05:00.404Z"} {"level":"info","message":"Starting LogVista Agent Scheduler","service":"logvista-agent","timestamp":"2025-07-24T08:05:00.405Z"} {"level":"info","message":"Started metrics task","service":"logvista-agent","timestamp":"2025-07-24T08:05:00.408Z"} {"level":"info","message":"Started logs task","service":"logvista-agent","timestamp":"2025-07-24T08:05:00.409Z"} {"level":"info","message":"Started retry task","service":"logvista-agent","timestamp":"2025-07-24T08:05:00.409Z"} {"level":"info","message":"Started serverInfo task","service":"logvista-agent","timestamp":"2025-07-24T08:05:00.409Z"} {"level":"info","message":"All scheduled tasks started successfully","service":"logvista-agent","timestamp":"2025-07-24T08:05:00.410Z"} {"level":"info","message":"LogVista Agent started successfully","service":"logvista-agent","timestamp":"2025-07-24T08:05:00.410Z"} {"config":{"batchSize":100,"centralUrl":"http://localhost:3001","collectionInterval":30},"isRunning":true,"level":"info","message":"Agent Status:","projects":[{"logPaths":3,"name":"test-api-project","path":"E:\\Freelance\\LogVistaV2\\test-api-project"}],"scheduler":{"activeTasks":["metrics","logs","retry","serverInfo"],"isRunning":true,"taskCount":4},"service":"logvista-agent","timestamp":"2025-07-24T08:05:00.411Z"} {"data":{"error":"\nInvalid `prisma.server.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\servers.js:90:38\n\n 87 });\n 88 } else {\n 89 // Create new server\n→ 90 server = await prisma.server.create({\n data: {\n name: \"DESKTOP-OQNP5BM\",\n hostname: \"DESKTOP-OQNP5BM\",\n platform: \"win32\",\n architecture: \"x64\",\n os: \"{\\\"platform\\\":\\\"Windows\\\",\\\"distro\\\":\\\"Microsoft Windows 11 Pro\\\",\\\"release\\\":\\\"10.0.26100\\\",\\\"kernel\\\":\\\"10.0.26100\\\",\\\"arch\\\":\\\"x64\\\"}\",\n cpu: \"{\\\"manufacturer\\\":\\\"Intel\\\",\\\"brand\\\":\\\"Core™ i5-8250U\\\",\\\"cores\\\":8,\\\"physicalCores\\\":4,\\\"speed\\\":1.6}\",\n system: \"{\\\"manufacturer\\\":\\\"Acer\\\",\\\"model\\\":\\\"Aspire A515-51G\\\",\\\"version\\\":\\\"V2.02\\\",\\\"serial\\\":\\\"NXGWJSI00375106D9E3400\\\"}\",\n memory: \"{\\\"total\\\":12754456576,\\\"free\\\":1376722944}\",\n uptime: 592963.75,\n loadAvg: \"[0,0,0]\",\n agentVersion: \"1.0.0\",\n lastHeartbeat: new Date(\"2025-07-24T08:05:08.320Z\"),\n status: \"ACTIVE\",\n + organization: {\n + create: OrganizationCreateWithoutServersInput | OrganizationUncheckedCreateWithoutServersInput,\n + connectOrCreate: OrganizationCreateOrConnectWithoutServersInput,\n + connect: OrganizationWhereUniqueInput\n + }\n }\n })\n\nArgument `organization` is missing."},"level":"error","message":"Upload failed for server-info - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T08:05:08.438Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:05:08.439Z"} {"data":{"error":"\nInvalid `prisma.server.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\servers.js:90:38\n\n 87 });\n 88 } else {\n 89 // Create new server\n→ 90 server = await prisma.server.create({\n data: {\n name: \"DESKTOP-OQNP5BM\",\n hostname: \"DESKTOP-OQNP5BM\",\n platform: \"win32\",\n architecture: \"x64\",\n os: \"{\\\"platform\\\":\\\"Windows\\\",\\\"distro\\\":\\\"Microsoft Windows 11 Pro\\\",\\\"release\\\":\\\"10.0.26100\\\",\\\"kernel\\\":\\\"10.0.26100\\\",\\\"arch\\\":\\\"x64\\\"}\",\n cpu: \"{\\\"manufacturer\\\":\\\"Intel\\\",\\\"brand\\\":\\\"Core™ i5-8250U\\\",\\\"cores\\\":8,\\\"physicalCores\\\":4,\\\"speed\\\":1.6}\",\n system: \"{\\\"manufacturer\\\":\\\"Acer\\\",\\\"model\\\":\\\"Aspire A515-51G\\\",\\\"version\\\":\\\"V2.02\\\",\\\"serial\\\":\\\"NXGWJSI00375106D9E3400\\\"}\",\n memory: \"{\\\"total\\\":12754456576,\\\"free\\\":1376722944}\",\n uptime: 592963.75,\n loadAvg: \"[0,0,0]\",\n agentVersion: \"1.0.0\",\n lastHeartbeat: new Date(\"2025-07-24T08:05:09.488Z\"),\n status: \"ACTIVE\",\n + organization: {\n + create: OrganizationCreateWithoutServersInput | OrganizationUncheckedCreateWithoutServersInput,\n + connectOrCreate: OrganizationCreateOrConnectWithoutServersInput,\n + connect: OrganizationWhereUniqueInput\n + }\n }\n })\n\nArgument `organization` is missing."},"level":"error","message":"Upload failed for server-info - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T08:05:09.497Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:05:09.500Z"} {"data":{"error":"\nInvalid `prisma.server.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\servers.js:90:38\n\n 87 });\n 88 } else {\n 89 // Create new server\n→ 90 server = await prisma.server.create({\n data: {\n name: \"DESKTOP-OQNP5BM\",\n hostname: \"DESKTOP-OQNP5BM\",\n platform: \"win32\",\n architecture: \"x64\",\n os: \"{\\\"platform\\\":\\\"Windows\\\",\\\"distro\\\":\\\"Microsoft Windows 11 Pro\\\",\\\"release\\\":\\\"10.0.26100\\\",\\\"kernel\\\":\\\"10.0.26100\\\",\\\"arch\\\":\\\"x64\\\"}\",\n cpu: \"{\\\"manufacturer\\\":\\\"Intel\\\",\\\"brand\\\":\\\"Core™ i5-8250U\\\",\\\"cores\\\":8,\\\"physicalCores\\\":4,\\\"speed\\\":1.6}\",\n system: \"{\\\"manufacturer\\\":\\\"Acer\\\",\\\"model\\\":\\\"Aspire A515-51G\\\",\\\"version\\\":\\\"V2.02\\\",\\\"serial\\\":\\\"NXGWJSI00375106D9E3400\\\"}\",\n memory: \"{\\\"total\\\":12754456576,\\\"free\\\":1376722944}\",\n uptime: 592963.75,\n loadAvg: \"[0,0,0]\",\n agentVersion: \"1.0.0\",\n lastHeartbeat: new Date(\"2025-07-24T08:05:11.547Z\"),\n status: \"ACTIVE\",\n + organization: {\n + create: OrganizationCreateWithoutServersInput | OrganizationUncheckedCreateWithoutServersInput,\n + connectOrCreate: OrganizationCreateOrConnectWithoutServersInput,\n + connect: OrganizationWhereUniqueInput\n + }\n }\n })\n\nArgument `organization` is missing."},"level":"error","message":"Upload failed for server-info - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T08:05:11.551Z"} {"code":"ERR_BAD_REQUEST","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"hostname\":\"DESKTOP-OQNP5BM\",\"platform\":\"win32\",\"architecture\":\"x64\",\"os\":{\"platform\":\"Windows\",\"distro\":\"Microsoft Windows 11 Pro\",\"release\":\"10.0.26100\",\"kernel\":\"10.0.26100\",\"arch\":\"x64\"},\"cpu\":{\"manufacturer\":\"Intel\",\"brand\":\"Core™ i5-8250U\",\"cores\":8,\"physicalCores\":4,\"speed\":1.6},\"system\":{\"manufacturer\":\"Acer\",\"model\":\"Aspire A515-51G\",\"version\":\"V2.02\",\"serial\":\"NXGWJSI00375106D9E3400\"},\"memory\":{\"total\":12754456576,\"free\":1376722944},\"uptime\":592963.75,\"loadavg\":[0,0,0],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T08:05:11.507Z\"},\"projects\":[{\"name\":\"test-api-project\",\"path\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\",\"logPaths\":[\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\error.log\",\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\"]}]}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"849","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/servers/register","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"level":"error","message":"Error updating server information: Request failed with status code 400","name":"AxiosError","request":{"_closed":true,"_contentLength":849,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/servers/register HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 849\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/servers/register","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"849","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/servers/register","pathname":"/api/servers/register","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":849,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/servers/register","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","1560","Date","Thu, 24 Jul 2025 08:05:11 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/servers/register","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"response":{"config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"hostname\":\"DESKTOP-OQNP5BM\",\"platform\":\"win32\",\"architecture\":\"x64\",\"os\":{\"platform\":\"Windows\",\"distro\":\"Microsoft Windows 11 Pro\",\"release\":\"10.0.26100\",\"kernel\":\"10.0.26100\",\"arch\":\"x64\"},\"cpu\":{\"manufacturer\":\"Intel\",\"brand\":\"Core™ i5-8250U\",\"cores\":8,\"physicalCores\":4,\"speed\":1.6},\"system\":{\"manufacturer\":\"Acer\",\"model\":\"Aspire A515-51G\",\"version\":\"V2.02\",\"serial\":\"NXGWJSI00375106D9E3400\"},\"memory\":{\"total\":12754456576,\"free\":1376722944},\"uptime\":592963.75,\"loadavg\":[0,0,0],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T08:05:11.507Z\"},\"projects\":[{\"name\":\"test-api-project\",\"path\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\",\"logPaths\":[\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\error.log\",\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\"]}]}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"849","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/servers/register","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"data":{"error":"\nInvalid `prisma.server.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\servers.js:90:38\n\n 87 });\n 88 } else {\n 89 // Create new server\n→ 90 server = await prisma.server.create({\n data: {\n name: \"DESKTOP-OQNP5BM\",\n hostname: \"DESKTOP-OQNP5BM\",\n platform: \"win32\",\n architecture: \"x64\",\n os: \"{\\\"platform\\\":\\\"Windows\\\",\\\"distro\\\":\\\"Microsoft Windows 11 Pro\\\",\\\"release\\\":\\\"10.0.26100\\\",\\\"kernel\\\":\\\"10.0.26100\\\",\\\"arch\\\":\\\"x64\\\"}\",\n cpu: \"{\\\"manufacturer\\\":\\\"Intel\\\",\\\"brand\\\":\\\"Core™ i5-8250U\\\",\\\"cores\\\":8,\\\"physicalCores\\\":4,\\\"speed\\\":1.6}\",\n system: \"{\\\"manufacturer\\\":\\\"Acer\\\",\\\"model\\\":\\\"Aspire A515-51G\\\",\\\"version\\\":\\\"V2.02\\\",\\\"serial\\\":\\\"NXGWJSI00375106D9E3400\\\"}\",\n memory: \"{\\\"total\\\":12754456576,\\\"free\\\":1376722944}\",\n uptime: 592963.75,\n loadAvg: \"[0,0,0]\",\n agentVersion: \"1.0.0\",\n lastHeartbeat: new Date(\"2025-07-24T08:05:11.547Z\"),\n status: \"ACTIVE\",\n + organization: {\n + create: OrganizationCreateWithoutServersInput | OrganizationUncheckedCreateWithoutServersInput,\n + connectOrCreate: OrganizationCreateOrConnectWithoutServersInput,\n + connect: OrganizationWhereUniqueInput\n + }\n }\n })\n\nArgument `organization` is missing."},"headers":{"connection":"keep-alive","content-length":"1560","content-security-policy":"default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","content-type":"application/json; charset=utf-8","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","date":"Thu, 24 Jul 2025 08:05:11 GMT","keep-alive":"timeout=72","origin-agent-cluster":"?1","referrer-policy":"no-referrer","strict-transport-security":"max-age=15552000; includeSubDomains","vary":"Origin","x-content-type-options":"nosniff","x-dns-prefetch-control":"off","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"0"},"request":{"_closed":true,"_contentLength":849,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/servers/register HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 849\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/servers/register","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"849","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/servers/register","pathname":"/api/servers/register","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":849,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/servers/register","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","1560","Date","Thu, 24 Jul 2025 08:05:11 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/servers/register","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"status":400,"statusText":"Bad Request"},"service":"logvista-agent","stack":"AxiosError: Request failed with status code 400\n at settle (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:2090:12)\n at IncomingMessage.handleStreamEnd (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3207:11)\n at IncomingMessage.emit (node:events:519:35)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadServerInfo (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:61:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.updateServerInfo (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:211:7)","status":400,"timestamp":"2025-07-24T08:05:11.551Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:05:39.960Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:06:09.246Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for metrics - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:06:38.485Z"} {"level":"info","message":"Saved metrics data offline: metrics-2025-07-24T08-06-38-486Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:06:38.488Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:06:38.488Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for metrics - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:06:39.503Z"} {"level":"info","message":"Saved metrics data offline: metrics-2025-07-24T08-06-39-504Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:06:39.505Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:06:39.506Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for metrics - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:06:41.514Z"} {"level":"info","message":"Saved metrics data offline: metrics-2025-07-24T08-06-41-515Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:06:41.516Z"} {"cause":{"code":"ECONNREFUSED"},"code":"ECONNREFUSED","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"metrics\":[{\"type\":\"system\",\"cpuUsage\":16.845860052572363,\"ramUsage\":10631.0703125,\"ramTotal\":12163.59765625,\"diskUsage\":455363.79296875,\"diskTotal\":1441429.3046875,\"networkIn\":0.0014474226342158013,\"networkOut\":0.001528621774859133,\"processCount\":283,\"loadAverage\":0,\"timestamp\":\"2025-07-24T08:06:35.131Z\"},{\"type\":\"project\",\"projectName\":\"test-api-project\",\"timestamp\":\"2025-07-24T08:06:35.131Z\",\"projectDiskUsage\":7.490633964538574}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T08:06:41.511Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"505","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/metrics","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"errors":[{"address":"::1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"},{"address":"127.0.0.1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"}],"level":"error","message":"Error in metrics collection and upload:","name":"AggregateError","request":{"_currentRequest":{"_closed":true,"_contentLength":505,"_defaultKeepAlive":true,"_ended":false,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/metrics HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 505\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":"[Circular]","_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/metrics","protocol":"http:","res":null,"reusedSocket":false,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"_currentUrl":"http://localhost:3001/api/metrics","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"505","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/metrics","pathname":"/api/metrics","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[{"data":{"data":[123,34,109,101,116,114,105,99,115,34,58,91,123,34,116,121,112,101,34,58,34,115,121,115,116,101,109,34,44,34,99,112,117,85,115,97,103,101,34,58,49,54,46,56,52,53,56,54,48,48,53,50,53,55,50,51,54,51,44,34,114,97,109,85,115,97,103,101,34,58,49,48,54,51,49,46,48,55,48,51,49,50,53,44,34,114,97,109,84,111,116,97,108,34,58,49,50,49,54,51,46,53,57,55,54,53,54,50,53,44,34,100,105,115,107,85,115,97,103,101,34,58,52,53,53,51,54,51,46,55,57,50,57,54,56,55,53,44,34,100,105,115,107,84,111,116,97,108,34,58,49,52,52,49,52,50,57,46,51,48,52,54,56,55,53,44,34,110,101,116,119,111,114,107,73,110,34,58,48,46,48,48,49,52,52,55,52,50,50,54,51,52,50,49,53,56,48,49,51,44,34,110,101,116,119,111,114,107,79,117,116,34,58,48,46,48,48,49,53,50,56,54,50,49,55,55,52,56,53,57,49,51,51,44,34,112,114,111,99,101,115,115,67,111,117,110,116,34,58,50,56,51,44,34,108,111,97,100,65,118,101,114,97,103,101,34,58,48,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,54,58,51,53,46,49,51,49,90,34,125,44,123,34,116,121,112,101,34,58,34,112,114,111,106,101,99,116,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,54,58,51,53,46,49,51,49,90,34,44,34,112,114,111,106,101,99,116,68,105,115,107,85,115,97,103,101,34,58,55,46,52,57,48,54,51,51,57,54,52,53,51,56,53,55,52,125,93,44,34,97,103,101,110,116,34,58,123,34,118,101,114,115,105,111,110,34,58,34,49,46,48,46,48,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,48,54,58,52,49,46,53,49,49,90,34,125,125],"type":"Buffer"}}],"_requestBodyLength":505,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"service":"logvista-agent","stack":"AggregateError\n at AxiosError.from (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:899:14)\n at RedirectableRequest.handleRequestError (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3228:25)\n at RedirectableRequest.emit (node:events:519:35)\n at eventHandlers. (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\follow-redirects\\index.js:49:24)\n at ClientRequest.emit (node:events:507:28)\n at emitErrorEvent (node:_http_client:104:11)\n at Socket.socketErrorListener (node:_http_client:518:5)\n at Socket.emit (node:events:507:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:21:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.collectAndUploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:124:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:28:7)","timestamp":"2025-07-24T08:06:41.516Z"} {"level":"info","message":"Initializing LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T08:07:02.933Z"} {"level":"info","message":"Configuration loaded successfully","service":"logvista-agent","timestamp":"2025-07-24T08:07:02.946Z"} {"level":"info","message":"Connection test successful:","service":"LogVista Central System","status":"ok","timestamp":"2025-07-24T08:07:02.992Z","version":"1.0.0"} {"level":"info","message":"LogVista Agent initialized successfully","service":"logvista-agent","timestamp":"2025-07-24T08:07:03.000Z"} {"level":"info","message":"Starting LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T08:07:03.001Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\app.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T08:07:03.003Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\error.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T08:07:03.004Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\access.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T08:07:03.006Z"} {"level":"info","message":"Started watching project logs in: E:\\Freelance\\LogVistaV2\\test-api-project","service":"logvista-agent","timestamp":"2025-07-24T08:07:03.007Z"} {"level":"info","message":"Starting LogVista Agent Scheduler","service":"logvista-agent","timestamp":"2025-07-24T08:07:03.007Z"} {"level":"info","message":"Started metrics task","service":"logvista-agent","timestamp":"2025-07-24T08:07:03.012Z"} {"level":"info","message":"Started logs task","service":"logvista-agent","timestamp":"2025-07-24T08:07:03.012Z"} {"level":"info","message":"Started retry task","service":"logvista-agent","timestamp":"2025-07-24T08:07:03.013Z"} {"level":"info","message":"Started serverInfo task","service":"logvista-agent","timestamp":"2025-07-24T08:07:03.013Z"} {"level":"info","message":"All scheduled tasks started successfully","service":"logvista-agent","timestamp":"2025-07-24T08:07:03.013Z"} {"level":"info","message":"LogVista Agent started successfully","service":"logvista-agent","timestamp":"2025-07-24T08:07:03.014Z"} {"config":{"batchSize":100,"centralUrl":"http://localhost:3001","collectionInterval":30},"isRunning":true,"level":"info","message":"Agent Status:","projects":[{"logPaths":3,"name":"test-api-project","path":"E:\\Freelance\\LogVistaV2\\test-api-project"}],"scheduler":{"activeTasks":["metrics","logs","retry","serverInfo"],"isRunning":true,"taskCount":4},"service":"logvista-agent","timestamp":"2025-07-24T08:07:03.014Z"} {"data":{"error":"\nInvalid `prisma.server.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\servers.js:105:38\n\n 102 }\n 103 \n 104 // Create new server\n→ 105 server = await prisma.server.create({\n data: {\n name: \"DESKTOP-OQNP5BM\",\n hostname: \"DESKTOP-OQNP5BM\",\n platform: \"win32\",\n architecture: \"x64\",\n ~~~~~~~~~~~~\n os: \"{\\\"platform\\\":\\\"Windows\\\",\\\"distro\\\":\\\"Microsoft Windows 11 Pro\\\",\\\"release\\\":\\\"10.0.26100\\\",\\\"kernel\\\":\\\"10.0.26100\\\",\\\"arch\\\":\\\"x64\\\"}\",\n cpu: \"{\\\"manufacturer\\\":\\\"Intel\\\",\\\"brand\\\":\\\"Core™ i5-8250U\\\",\\\"cores\\\":8,\\\"physicalCores\\\":4,\\\"speed\\\":1.6}\",\n system: \"{\\\"manufacturer\\\":\\\"Acer\\\",\\\"model\\\":\\\"Aspire A515-51G\\\",\\\"version\\\":\\\"V2.02\\\",\\\"serial\\\":\\\"NXGWJSI00375106D9E3400\\\"}\",\n memory: \"{\\\"total\\\":12754456576,\\\"free\\\":1433432064}\",\n uptime: 593086.25,\n loadAvg: \"[0,0,0]\",\n agentVersion: \"1.0.0\",\n lastHeartbeat: new Date(\"2025-07-24T08:07:10.909Z\"),\n status: \"ACTIVE\",\n organizationId: \"cmdh059xo0000vw2cmdjsezq6\",\n ? id?: String,\n ? ipAddress?: String | Null,\n ? osVersion?: String | Null,\n ? lastSeen?: DateTime | Null,\n ? createdAt?: DateTime,\n ? updatedAt?: DateTime,\n ? projects?: ProjectUncheckedCreateNestedManyWithoutServerInput,\n ? metrics?: MetricUncheckedCreateNestedManyWithoutServerInput,\n ? logs?: LogUncheckedCreateNestedManyWithoutServerInput\n }\n })\n\nUnknown argument `architecture`. Available options are marked with ?."},"level":"error","message":"Upload failed for server-info - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T08:07:10.919Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:07:10.920Z"} {"data":{"error":"\nInvalid `prisma.server.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\servers.js:105:38\n\n 102 }\n 103 \n 104 // Create new server\n→ 105 server = await prisma.server.create({\n data: {\n name: \"DESKTOP-OQNP5BM\",\n hostname: \"DESKTOP-OQNP5BM\",\n platform: \"win32\",\n architecture: \"x64\",\n ~~~~~~~~~~~~\n os: \"{\\\"platform\\\":\\\"Windows\\\",\\\"distro\\\":\\\"Microsoft Windows 11 Pro\\\",\\\"release\\\":\\\"10.0.26100\\\",\\\"kernel\\\":\\\"10.0.26100\\\",\\\"arch\\\":\\\"x64\\\"}\",\n cpu: \"{\\\"manufacturer\\\":\\\"Intel\\\",\\\"brand\\\":\\\"Core™ i5-8250U\\\",\\\"cores\\\":8,\\\"physicalCores\\\":4,\\\"speed\\\":1.6}\",\n system: \"{\\\"manufacturer\\\":\\\"Acer\\\",\\\"model\\\":\\\"Aspire A515-51G\\\",\\\"version\\\":\\\"V2.02\\\",\\\"serial\\\":\\\"NXGWJSI00375106D9E3400\\\"}\",\n memory: \"{\\\"total\\\":12754456576,\\\"free\\\":1433432064}\",\n uptime: 593086.25,\n loadAvg: \"[0,0,0]\",\n agentVersion: \"1.0.0\",\n lastHeartbeat: new Date(\"2025-07-24T08:07:12.010Z\"),\n status: \"ACTIVE\",\n organizationId: \"cmdh059xo0000vw2cmdjsezq6\",\n ? id?: String,\n ? ipAddress?: String | Null,\n ? osVersion?: String | Null,\n ? lastSeen?: DateTime | Null,\n ? createdAt?: DateTime,\n ? updatedAt?: DateTime,\n ? projects?: ProjectUncheckedCreateNestedManyWithoutServerInput,\n ? metrics?: MetricUncheckedCreateNestedManyWithoutServerInput,\n ? logs?: LogUncheckedCreateNestedManyWithoutServerInput\n }\n })\n\nUnknown argument `architecture`. Available options are marked with ?."},"level":"error","message":"Upload failed for server-info - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T08:07:12.015Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:07:12.016Z"} {"data":{"error":"\nInvalid `prisma.server.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\servers.js:105:38\n\n 102 }\n 103 \n 104 // Create new server\n→ 105 server = await prisma.server.create({\n data: {\n name: \"DESKTOP-OQNP5BM\",\n hostname: \"DESKTOP-OQNP5BM\",\n platform: \"win32\",\n architecture: \"x64\",\n ~~~~~~~~~~~~\n os: \"{\\\"platform\\\":\\\"Windows\\\",\\\"distro\\\":\\\"Microsoft Windows 11 Pro\\\",\\\"release\\\":\\\"10.0.26100\\\",\\\"kernel\\\":\\\"10.0.26100\\\",\\\"arch\\\":\\\"x64\\\"}\",\n cpu: \"{\\\"manufacturer\\\":\\\"Intel\\\",\\\"brand\\\":\\\"Core™ i5-8250U\\\",\\\"cores\\\":8,\\\"physicalCores\\\":4,\\\"speed\\\":1.6}\",\n system: \"{\\\"manufacturer\\\":\\\"Acer\\\",\\\"model\\\":\\\"Aspire A515-51G\\\",\\\"version\\\":\\\"V2.02\\\",\\\"serial\\\":\\\"NXGWJSI00375106D9E3400\\\"}\",\n memory: \"{\\\"total\\\":12754456576,\\\"free\\\":1433432064}\",\n uptime: 593086.25,\n loadAvg: \"[0,0,0]\",\n agentVersion: \"1.0.0\",\n lastHeartbeat: new Date(\"2025-07-24T08:07:14.115Z\"),\n status: \"ACTIVE\",\n organizationId: \"cmdh059xo0000vw2cmdjsezq6\",\n ? id?: String,\n ? ipAddress?: String | Null,\n ? osVersion?: String | Null,\n ? lastSeen?: DateTime | Null,\n ? createdAt?: DateTime,\n ? updatedAt?: DateTime,\n ? projects?: ProjectUncheckedCreateNestedManyWithoutServerInput,\n ? metrics?: MetricUncheckedCreateNestedManyWithoutServerInput,\n ? logs?: LogUncheckedCreateNestedManyWithoutServerInput\n }\n })\n\nUnknown argument `architecture`. Available options are marked with ?."},"level":"error","message":"Upload failed for server-info - Server Error:","service":"logvista-agent","status":400,"statusText":"Bad Request","timestamp":"2025-07-24T08:07:14.121Z"} {"code":"ERR_BAD_REQUEST","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"hostname\":\"DESKTOP-OQNP5BM\",\"platform\":\"win32\",\"architecture\":\"x64\",\"os\":{\"platform\":\"Windows\",\"distro\":\"Microsoft Windows 11 Pro\",\"release\":\"10.0.26100\",\"kernel\":\"10.0.26100\",\"arch\":\"x64\"},\"cpu\":{\"manufacturer\":\"Intel\",\"brand\":\"Core™ i5-8250U\",\"cores\":8,\"physicalCores\":4,\"speed\":1.6},\"system\":{\"manufacturer\":\"Acer\",\"model\":\"Aspire A515-51G\",\"version\":\"V2.02\",\"serial\":\"NXGWJSI00375106D9E3400\"},\"memory\":{\"total\":12754456576,\"free\":1433432064},\"uptime\":593086.25,\"loadavg\":[0,0,0],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T08:07:14.022Z\"},\"projects\":[{\"name\":\"test-api-project\",\"path\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\",\"logPaths\":[\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\error.log\",\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\"]}]}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"849","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/servers/register","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"level":"error","message":"Error updating server information: Request failed with status code 400","name":"AxiosError","request":{"_closed":true,"_contentLength":849,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/servers/register HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 849\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/servers/register","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"849","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/servers/register","pathname":"/api/servers/register","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":849,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/servers/register","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","1782","Date","Thu, 24 Jul 2025 08:07:14 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/servers/register","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"response":{"config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"hostname\":\"DESKTOP-OQNP5BM\",\"platform\":\"win32\",\"architecture\":\"x64\",\"os\":{\"platform\":\"Windows\",\"distro\":\"Microsoft Windows 11 Pro\",\"release\":\"10.0.26100\",\"kernel\":\"10.0.26100\",\"arch\":\"x64\"},\"cpu\":{\"manufacturer\":\"Intel\",\"brand\":\"Core™ i5-8250U\",\"cores\":8,\"physicalCores\":4,\"speed\":1.6},\"system\":{\"manufacturer\":\"Acer\",\"model\":\"Aspire A515-51G\",\"version\":\"V2.02\",\"serial\":\"NXGWJSI00375106D9E3400\"},\"memory\":{\"total\":12754456576,\"free\":1433432064},\"uptime\":593086.25,\"loadavg\":[0,0,0],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T08:07:14.022Z\"},\"projects\":[{\"name\":\"test-api-project\",\"path\":\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\",\"logPaths\":[\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\app.log\",\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\error.log\",\"E:\\\\Freelance\\\\LogVistaV2\\\\test-api-project\\\\logs\\\\access.log\"]}]}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"849","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/servers/register","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"data":{"error":"\nInvalid `prisma.server.create()` invocation in\nE:\\Freelance\\LogVistaV2\\central-system\\src\\routes\\servers.js:105:38\n\n 102 }\n 103 \n 104 // Create new server\n→ 105 server = await prisma.server.create({\n data: {\n name: \"DESKTOP-OQNP5BM\",\n hostname: \"DESKTOP-OQNP5BM\",\n platform: \"win32\",\n architecture: \"x64\",\n ~~~~~~~~~~~~\n os: \"{\\\"platform\\\":\\\"Windows\\\",\\\"distro\\\":\\\"Microsoft Windows 11 Pro\\\",\\\"release\\\":\\\"10.0.26100\\\",\\\"kernel\\\":\\\"10.0.26100\\\",\\\"arch\\\":\\\"x64\\\"}\",\n cpu: \"{\\\"manufacturer\\\":\\\"Intel\\\",\\\"brand\\\":\\\"Core™ i5-8250U\\\",\\\"cores\\\":8,\\\"physicalCores\\\":4,\\\"speed\\\":1.6}\",\n system: \"{\\\"manufacturer\\\":\\\"Acer\\\",\\\"model\\\":\\\"Aspire A515-51G\\\",\\\"version\\\":\\\"V2.02\\\",\\\"serial\\\":\\\"NXGWJSI00375106D9E3400\\\"}\",\n memory: \"{\\\"total\\\":12754456576,\\\"free\\\":1433432064}\",\n uptime: 593086.25,\n loadAvg: \"[0,0,0]\",\n agentVersion: \"1.0.0\",\n lastHeartbeat: new Date(\"2025-07-24T08:07:14.115Z\"),\n status: \"ACTIVE\",\n organizationId: \"cmdh059xo0000vw2cmdjsezq6\",\n ? id?: String,\n ? ipAddress?: String | Null,\n ? osVersion?: String | Null,\n ? lastSeen?: DateTime | Null,\n ? createdAt?: DateTime,\n ? updatedAt?: DateTime,\n ? projects?: ProjectUncheckedCreateNestedManyWithoutServerInput,\n ? metrics?: MetricUncheckedCreateNestedManyWithoutServerInput,\n ? logs?: LogUncheckedCreateNestedManyWithoutServerInput\n }\n })\n\nUnknown argument `architecture`. Available options are marked with ?."},"headers":{"connection":"keep-alive","content-length":"1782","content-security-policy":"default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","content-type":"application/json; charset=utf-8","cross-origin-opener-policy":"same-origin","cross-origin-resource-policy":"same-origin","date":"Thu, 24 Jul 2025 08:07:14 GMT","keep-alive":"timeout=72","origin-agent-cluster":"?1","referrer-policy":"no-referrer","strict-transport-security":"max-age=15552000; includeSubDomains","vary":"Origin","x-content-type-options":"nosniff","x-dns-prefetch-control":"off","x-download-options":"noopen","x-frame-options":"SAMEORIGIN","x-permitted-cross-domain-policies":"none","x-xss-protection":"0"},"request":{"_closed":true,"_contentLength":849,"_defaultKeepAlive":true,"_ended":true,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/servers/register HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 849\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":{"_currentRequest":"[Circular]","_currentUrl":"http://localhost:3001/api/servers/register","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"849","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/servers/register","pathname":"/api/servers/register","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[],"_requestBodyLength":849,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{"localhost:3001:":[{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000}]},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":1},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/servers/register","protocol":"http:","res":{"_consuming":false,"_dumped":false,"_events":{"end":[null,null]},"_eventsCount":4,"_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"aborted":false,"client":{"_closeAfterHandlingError":false,"_events":{"timeout":[null,null]},"_eventsCount":6,"_hadError":false,"_host":"localhost","_httpMessage":null,"_parent":null,"_pendingData":null,"_pendingEncoding":"","_readableState":{"awaitDrainWriters":null,"buffer":[],"bufferIndex":0,"highWaterMark":16384,"length":0,"pipes":[]},"_server":null,"_sockname":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0},"allowHalfOpen":false,"autoSelectFamilyAttemptedAddresses":["::1:3001"],"connecting":false,"parser":null,"server":null,"timeout":5000},"complete":true,"httpVersion":"1.1","httpVersionMajor":1,"httpVersionMinor":1,"method":null,"rawHeaders":["Content-Security-Policy","default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self';img-src 'self' data: https:;base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';object-src 'none';script-src-attr 'none';upgrade-insecure-requests","Cross-Origin-Opener-Policy","same-origin","Cross-Origin-Resource-Policy","same-origin","Origin-Agent-Cluster","?1","Referrer-Policy","no-referrer","Strict-Transport-Security","max-age=15552000; includeSubDomains","X-Content-Type-Options","nosniff","X-DNS-Prefetch-Control","off","X-Download-Options","noopen","X-Frame-Options","SAMEORIGIN","X-Permitted-Cross-Domain-Policies","none","X-XSS-Protection","0","vary","Origin","content-type","application/json; charset=utf-8","content-length","1782","Date","Thu, 24 Jul 2025 08:07:14 GMT","Connection","keep-alive","Keep-Alive","timeout=72"],"rawTrailers":[],"redirects":[],"req":"[Circular]","responseUrl":"http://localhost:3001/api/servers/register","socket":null,"statusCode":400,"statusMessage":"Bad Request","upgrade":false,"url":""},"reusedSocket":true,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"timeoutCb":null,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"status":400,"statusText":"Bad Request"},"service":"logvista-agent","stack":"AxiosError: Request failed with status code 400\n at settle (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:2090:12)\n at IncomingMessage.handleStreamEnd (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3207:11)\n at IncomingMessage.emit (node:events:519:35)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadServerInfo (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:61:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.updateServerInfo (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:211:7)","status":400,"timestamp":"2025-07-24T08:07:14.122Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:07:37.871Z"} {"level":"info","message":"Received SIGINT, shutting down gracefully...","service":"logvista-agent","timestamp":"2025-07-24T08:08:08.726Z"} {"level":"info","message":"Initializing LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T08:09:40.891Z"} {"level":"info","message":"Configuration loaded successfully","service":"logvista-agent","timestamp":"2025-07-24T08:09:40.904Z"} {"level":"info","message":"Connection test successful:","service":"LogVista Central System","status":"ok","timestamp":"2025-07-24T08:09:40.949Z","version":"1.0.0"} {"level":"info","message":"LogVista Agent initialized successfully","service":"logvista-agent","timestamp":"2025-07-24T08:09:40.957Z"} {"level":"info","message":"Starting LogVista Agent...","service":"logvista-agent","timestamp":"2025-07-24T08:09:40.958Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\app.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T08:09:40.960Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\error.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T08:09:40.962Z"} {"level":"info","message":"Started watching log file: E:\\Freelance\\LogVistaV2\\test-api-project\\logs\\access.log for project: test-api-project","service":"logvista-agent","timestamp":"2025-07-24T08:09:40.963Z"} {"level":"info","message":"Started watching project logs in: E:\\Freelance\\LogVistaV2\\test-api-project","service":"logvista-agent","timestamp":"2025-07-24T08:09:40.964Z"} {"level":"info","message":"Starting LogVista Agent Scheduler","service":"logvista-agent","timestamp":"2025-07-24T08:09:40.965Z"} {"level":"info","message":"Started metrics task","service":"logvista-agent","timestamp":"2025-07-24T08:09:40.970Z"} {"level":"info","message":"Started logs task","service":"logvista-agent","timestamp":"2025-07-24T08:09:40.970Z"} {"level":"info","message":"Started retry task","service":"logvista-agent","timestamp":"2025-07-24T08:09:40.971Z"} {"level":"info","message":"Started serverInfo task","service":"logvista-agent","timestamp":"2025-07-24T08:09:40.971Z"} {"level":"info","message":"All scheduled tasks started successfully","service":"logvista-agent","timestamp":"2025-07-24T08:09:40.972Z"} {"level":"info","message":"LogVista Agent started successfully","service":"logvista-agent","timestamp":"2025-07-24T08:09:40.972Z"} {"config":{"batchSize":100,"centralUrl":"http://localhost:3001","collectionInterval":30},"isRunning":true,"level":"info","message":"Agent Status:","projects":[{"logPaths":3,"name":"test-api-project","path":"E:\\Freelance\\LogVistaV2\\test-api-project"}],"scheduler":{"activeTasks":["metrics","logs","retry","serverInfo"],"isRunning":true,"taskCount":4},"service":"logvista-agent","timestamp":"2025-07-24T08:09:40.972Z"} {"level":"info","message":"Successfully registered/updated server info","service":"logvista-agent","timestamp":"2025-07-24T08:09:49.542Z"} {"level":"info","message":"Successfully uploaded 6 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:01.107Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T07-58-30-936Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:01.108Z"} {"level":"info","message":"Successfully uploaded 8 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:02.024Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T07-59-10-726Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:02.026Z"} {"level":"info","message":"Successfully uploaded 8 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:02.919Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T07-59-11-735Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:02.920Z"} {"level":"info","message":"Successfully uploaded 8 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:04.042Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T07-59-13-750Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:04.043Z"} {"level":"info","message":"Successfully uploaded 2 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:04.289Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T07-59-50-655Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:04.290Z"} {"level":"info","message":"Successfully uploaded 2 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:04.508Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T07-59-50-674Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:04.509Z"} {"level":"info","message":"Successfully uploaded 2 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:04.706Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T07-59-51-866Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:04.707Z"} {"level":"info","message":"Successfully uploaded 2 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:04.937Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T07-59-52-267Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:04.938Z"} {"level":"info","message":"Successfully uploaded 2 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:05.328Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T07-59-54-377Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:05.329Z"} {"level":"info","message":"Successfully uploaded 6 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:05.977Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-00-00-657Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:05.977Z"} {"level":"info","message":"Successfully uploaded 6 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:06.613Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-00-00-677Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:06.614Z"} {"level":"info","message":"Successfully uploaded 8 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:07.508Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-00-00-705Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:07.509Z"} {"level":"info","message":"Successfully uploaded 4 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:07.935Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-00-00-757Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:07.936Z"} {"level":"info","message":"Successfully uploaded 6 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:08.613Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-00-00-792Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:08.614Z"} {"level":"info","message":"Successfully uploaded 8 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:09.497Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-00-00-852Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:09.498Z"} {"level":"info","message":"Successfully uploaded 8 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:10.353Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-00-01-024Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:10.354Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:10:10.668Z"} {"level":"info","message":"Successfully uploaded 8 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:11.211Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-00-01-183Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:11.211Z"} {"level":"info","message":"Successfully uploaded 8 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:12.149Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-00-01-357Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:12.153Z"} {"level":"info","message":"Successfully uploaded 2 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:12.371Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-00-01-450Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:12.372Z"} {"level":"info","message":"Successfully uploaded 2 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:12.605Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-00-01-672Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:12.607Z"} {"level":"info","message":"Successfully uploaded 6 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:13.224Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-00-01-947Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:13.224Z"} {"level":"info","message":"Successfully uploaded 2 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:13.428Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-00-02-100Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:13.429Z"} {"level":"info","message":"Successfully uploaded 2 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:13.638Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-00-02-291Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:13.639Z"} {"level":"info","message":"Successfully uploaded 2 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:13.847Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-00-02-575Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:13.850Z"} {"level":"info","message":"Successfully uploaded 6 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:14.454Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-00-04-109Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:14.455Z"} {"level":"info","message":"Successfully uploaded 12 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:15.740Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-00-10-217Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:15.741Z"} {"level":"info","message":"Successfully uploaded 12 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:17.018Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-00-11-223Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:17.020Z"} {"level":"info","message":"Successfully uploaded 4 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:17.448Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-00-30-758Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:17.449Z"} {"level":"info","message":"Successfully uploaded 4 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:17.867Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-00-31-770Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:17.867Z"} {"level":"info","message":"Successfully uploaded 4 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:18.297Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-00-33-791Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:18.299Z"} {"level":"info","message":"Successfully uploaded 4 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:18.755Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-02-40-472Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:18.756Z"} {"level":"info","message":"Successfully uploaded 4 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:19.188Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-02-41-486Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:19.188Z"} {"level":"info","message":"Successfully uploaded 4 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:19.588Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-02-43-504Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:19.668Z"} {"level":"info","message":"Successfully uploaded 8 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:20.558Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-03-10-898Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:20.558Z"} {"level":"info","message":"Successfully uploaded 8 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:21.420Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-03-11-911Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:21.421Z"} {"level":"info","message":"Successfully uploaded 8 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:22.309Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-03-13-926Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:22.310Z"} {"level":"info","message":"Successfully uploaded 2 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:22.551Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-03-40-081Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:22.555Z"} {"level":"info","message":"Successfully uploaded 2 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:22.787Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-03-41-089Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:22.790Z"} {"level":"info","message":"Successfully uploaded 2 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:23.052Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-03-43-103Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:23.055Z"} {"level":"info","message":"Successfully uploaded 8 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:23.967Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-04-10-319Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:23.972Z"} {"level":"info","message":"Successfully uploaded 8 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:24.929Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-04-11-327Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:24.930Z"} {"level":"info","message":"Successfully uploaded 8 log records","service":"logvista-agent","timestamp":"2025-07-24T08:10:25.801Z"} {"level":"info","message":"Successfully retried offline data: logs-2025-07-24T08-04-13-338Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:25.804Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:10:25.891Z"} {"level":"info","message":"Successfully retried offline data: metrics-2025-07-24T07-59-14-151Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:25.892Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:10:25.993Z"} {"level":"info","message":"Successfully retried offline data: metrics-2025-07-24T07-59-15-171Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:25.994Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:10:26.068Z"} {"level":"info","message":"Successfully retried offline data: metrics-2025-07-24T07-59-17-187Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:26.070Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:10:26.156Z"} {"level":"info","message":"Successfully retried offline data: metrics-2025-07-24T08-00-02-725Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:26.157Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:10:26.243Z"} {"level":"info","message":"Successfully retried offline data: metrics-2025-07-24T08-00-02-901Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:26.244Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:10:26.318Z"} {"level":"info","message":"Successfully retried offline data: metrics-2025-07-24T08-00-03-076Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:26.320Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:10:26.393Z"} {"level":"info","message":"Successfully retried offline data: metrics-2025-07-24T08-00-11-855Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:26.395Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:10:26.459Z"} {"level":"info","message":"Successfully retried offline data: metrics-2025-07-24T08-00-12-862Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:26.460Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:10:26.526Z"} {"level":"info","message":"Successfully retried offline data: metrics-2025-07-24T08-02-39-001Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:26.526Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:10:26.604Z"} {"level":"info","message":"Successfully retried offline data: metrics-2025-07-24T08-02-40-017Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:26.604Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:10:26.683Z"} {"level":"info","message":"Successfully retried offline data: metrics-2025-07-24T08-02-42-026Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:26.685Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:10:26.762Z"} {"level":"info","message":"Successfully retried offline data: metrics-2025-07-24T08-03-09-509Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:26.764Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:10:26.839Z"} {"level":"info","message":"Successfully retried offline data: metrics-2025-07-24T08-03-10-526Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:26.840Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:10:26.915Z"} {"level":"info","message":"Successfully retried offline data: metrics-2025-07-24T08-03-12-539Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:26.916Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:10:26.993Z"} {"level":"info","message":"Successfully retried offline data: metrics-2025-07-24T08-03-40-075Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:26.994Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:10:27.072Z"} {"level":"info","message":"Successfully retried offline data: metrics-2025-07-24T08-03-41-089Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:27.073Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:10:27.144Z"} {"level":"info","message":"Successfully retried offline data: metrics-2025-07-24T08-03-43-102Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:27.146Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:10:27.223Z"} {"level":"info","message":"Successfully retried offline data: metrics-2025-07-24T08-04-09-354Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:27.223Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:10:27.298Z"} {"level":"info","message":"Successfully retried offline data: metrics-2025-07-24T08-04-10-414Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:27.299Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:10:27.374Z"} {"level":"info","message":"Successfully retried offline data: metrics-2025-07-24T08-04-12-430Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:27.375Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:10:27.443Z"} {"level":"info","message":"Successfully retried offline data: metrics-2025-07-24T08-06-38-486Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:27.444Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:10:27.552Z"} {"level":"info","message":"Successfully retried offline data: metrics-2025-07-24T08-06-39-504Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:27.571Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:10:27.670Z"} {"level":"info","message":"Successfully retried offline data: metrics-2025-07-24T08-06-41-515Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:27.673Z"} {"level":"info","message":"Successfully registered/updated server info","service":"logvista-agent","timestamp":"2025-07-24T08:10:28.018Z"} {"level":"info","message":"Successfully retried offline data: server-info-2025-07-24T07-58-40-927Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:28.019Z"} {"level":"info","message":"Successfully registered/updated server info","service":"logvista-agent","timestamp":"2025-07-24T08:10:28.176Z"} {"level":"info","message":"Successfully retried offline data: server-info-2025-07-24T07-58-42-137Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:28.177Z"} {"level":"info","message":"Successfully registered/updated server info","service":"logvista-agent","timestamp":"2025-07-24T08:10:28.340Z"} {"level":"info","message":"Successfully retried offline data: server-info-2025-07-24T07-58-43-154Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:28.342Z"} {"level":"info","message":"Successfully registered/updated server info","service":"logvista-agent","timestamp":"2025-07-24T08:10:28.512Z"} {"level":"info","message":"Successfully retried offline data: server-info-2025-07-24T07-58-45-172Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:28.513Z"} {"level":"info","message":"Successfully registered/updated server info","service":"logvista-agent","timestamp":"2025-07-24T08:10:28.660Z"} {"level":"info","message":"Successfully retried offline data: server-info-2025-07-24T07-58-53-226Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:28.664Z"} {"level":"info","message":"Successfully registered/updated server info","service":"logvista-agent","timestamp":"2025-07-24T08:10:28.832Z"} {"level":"info","message":"Successfully retried offline data: server-info-2025-07-24T07-59-02-084Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:28.833Z"} {"level":"info","message":"Successfully registered/updated server info","service":"logvista-agent","timestamp":"2025-07-24T08:10:28.999Z"} {"level":"info","message":"Successfully retried offline data: server-info-2025-07-24T07-59-26-140Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:29.004Z"} {"level":"info","message":"Successfully registered/updated server info","service":"logvista-agent","timestamp":"2025-07-24T08:10:29.167Z"} {"level":"info","message":"Successfully retried offline data: server-info-2025-07-24T07-59-34-996Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:29.169Z"} {"level":"info","message":"Successfully registered/updated server info","service":"logvista-agent","timestamp":"2025-07-24T08:10:29.334Z"} {"level":"info","message":"Successfully retried offline data: server-info-2025-07-24T07-59-43-478Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:29.338Z"} {"level":"info","message":"Successfully registered/updated server info","service":"logvista-agent","timestamp":"2025-07-24T08:10:29.505Z"} {"level":"info","message":"Successfully retried offline data: server-info-2025-07-24T07-59-54-068Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:29.506Z"} {"level":"info","message":"Successfully registered/updated server info","service":"logvista-agent","timestamp":"2025-07-24T08:10:29.652Z"} {"level":"info","message":"Successfully retried offline data: server-info-2025-07-24T07-59-55-084Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:29.655Z"} {"level":"info","message":"Successfully registered/updated server info","service":"logvista-agent","timestamp":"2025-07-24T08:10:29.822Z"} {"level":"info","message":"Successfully retried offline data: server-info-2025-07-24T07-59-57-104Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:29.822Z"} {"level":"info","message":"Successfully registered/updated server info","service":"logvista-agent","timestamp":"2025-07-24T08:10:29.979Z"} {"level":"info","message":"Successfully retried offline data: server-info-2025-07-24T08-00-03-521Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:29.984Z"} {"level":"info","message":"Successfully registered/updated server info","service":"logvista-agent","timestamp":"2025-07-24T08:10:30.191Z"} {"level":"info","message":"Successfully retried offline data: server-info-2025-07-24T08-00-03-698Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:30.192Z"} {"level":"info","message":"Successfully registered/updated server info","service":"logvista-agent","timestamp":"2025-07-24T08:10:30.350Z"} {"level":"info","message":"Successfully retried offline data: server-info-2025-07-24T08-00-03-807Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:30.355Z"} {"level":"info","message":"Successfully registered/updated server info","service":"logvista-agent","timestamp":"2025-07-24T08:10:30.536Z"} {"level":"info","message":"Successfully retried offline data: server-info-2025-07-24T08-00-03-820Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:30.537Z"} {"level":"info","message":"Successfully registered/updated server info","service":"logvista-agent","timestamp":"2025-07-24T08:10:30.677Z"} {"level":"info","message":"Successfully retried offline data: server-info-2025-07-24T08-00-03-847Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:30.678Z"} {"level":"info","message":"Successfully registered/updated server info","service":"logvista-agent","timestamp":"2025-07-24T08:10:30.816Z"} {"level":"info","message":"Successfully retried offline data: server-info-2025-07-24T08-00-03-891Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:30.817Z"} {"level":"info","message":"Successfully registered/updated server info","service":"logvista-agent","timestamp":"2025-07-24T08:10:30.977Z"} {"level":"info","message":"Successfully retried offline data: server-info-2025-07-24T08-00-03-929Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:30.978Z"} {"level":"info","message":"Successfully registered/updated server info","service":"logvista-agent","timestamp":"2025-07-24T08:10:31.117Z"} {"level":"info","message":"Successfully retried offline data: server-info-2025-07-24T08-00-03-940Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:31.118Z"} {"level":"info","message":"Successfully registered/updated server info","service":"logvista-agent","timestamp":"2025-07-24T08:10:31.266Z"} {"level":"info","message":"Successfully retried offline data: server-info-2025-07-24T08-00-03-949Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:31.267Z"} {"level":"info","message":"Successfully registered/updated server info","service":"logvista-agent","timestamp":"2025-07-24T08:10:31.402Z"} {"level":"info","message":"Successfully retried offline data: server-info-2025-07-24T08-00-03-958Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:31.403Z"} {"level":"info","message":"Successfully registered/updated server info","service":"logvista-agent","timestamp":"2025-07-24T08:10:31.550Z"} {"level":"info","message":"Successfully retried offline data: server-info-2025-07-24T08-00-03-969Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:31.551Z"} {"level":"info","message":"Successfully registered/updated server info","service":"logvista-agent","timestamp":"2025-07-24T08:10:31.707Z"} {"level":"info","message":"Successfully retried offline data: server-info-2025-07-24T08-00-03-982Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:31.707Z"} {"level":"info","message":"Successfully registered/updated server info","service":"logvista-agent","timestamp":"2025-07-24T08:10:31.848Z"} {"level":"info","message":"Successfully retried offline data: server-info-2025-07-24T08-00-24-067Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:31.849Z"} {"level":"info","message":"Successfully registered/updated server info","service":"logvista-agent","timestamp":"2025-07-24T08:10:32.331Z"} {"level":"info","message":"Successfully retried offline data: server-info-2025-07-24T08-00-25-082Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:32.333Z"} {"level":"info","message":"Successfully registered/updated server info","service":"logvista-agent","timestamp":"2025-07-24T08:10:32.487Z"} {"level":"info","message":"Successfully retried offline data: server-info-2025-07-24T08-00-27-099Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:10:32.601Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:10:40.111Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:11:09.526Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:11:39.318Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:12:08.798Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:12:43.894Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:13:09.961Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:13:39.669Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:14:38.446Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:15:09.131Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:15:40.956Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:16:09.266Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:16:40.578Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:17:08.847Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:17:38.794Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:18:09.801Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:18:39.215Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:19:08.713Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:19:39.092Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:20:09.397Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:20:38.474Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:21:09.139Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:21:39.664Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:22:11.253Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:22:41.762Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:23:11.755Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:23:39.483Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:24:09.878Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:24:39.458Z"} {"level":"info","message":"Successfully uploaded 2 metric records","service":"logvista-agent","timestamp":"2025-07-24T08:25:08.607Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for metrics - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:25:39.040Z"} {"level":"info","message":"Saved metrics data offline: metrics-2025-07-24T08-25-39-042Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:25:39.044Z"} {"level":"warn","message":"Attempt 1 failed, retrying in 1000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:25:39.044Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for metrics - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:25:40.065Z"} {"level":"info","message":"Saved metrics data offline: metrics-2025-07-24T08-25-40-066Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:25:40.067Z"} {"level":"warn","message":"Attempt 2 failed, retrying in 2000ms:","service":"logvista-agent","timestamp":"2025-07-24T08:25:40.068Z"} {"code":"ECONNREFUSED","level":"error","message":"Upload failed for metrics - Network Error:","service":"logvista-agent","timestamp":"2025-07-24T08:25:42.091Z"} {"level":"info","message":"Saved metrics data offline: metrics-2025-07-24T08-25-42-094Z.json","service":"logvista-agent","timestamp":"2025-07-24T08:25:42.096Z"} {"cause":{"code":"ECONNREFUSED"},"code":"ECONNREFUSED","config":{"adapter":["xhr","http","fetch"],"allowAbsoluteUrls":true,"baseURL":"http://localhost:3001","data":"{\"metrics\":[{\"type\":\"system\",\"cpuUsage\":22.371530558769145,\"ramUsage\":10362.1171875,\"ramTotal\":12163.59765625,\"diskUsage\":455322.2734375,\"diskTotal\":1441429.3046875,\"networkIn\":0.004805349434559656,\"networkOut\":0.028384060419836685,\"processCount\":281,\"loadAverage\":0,\"timestamp\":\"2025-07-24T08:25:35.498Z\"},{\"type\":\"project\",\"projectName\":\"test-api-project\",\"timestamp\":\"2025-07-24T08:25:35.498Z\",\"projectDiskUsage\":7.490633964538574}],\"agent\":{\"version\":\"1.0.0\",\"timestamp\":\"2025-07-24T08:25:42.083Z\"}}","env":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"503","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"maxBodyLength":-1,"maxContentLength":-1,"method":"post","timeout":30000,"transformRequest":[null],"transformResponse":[null],"transitional":{"clarifyTimeoutError":false,"forcedJSONParsing":true,"silentJSONParsing":true},"url":"/api/metrics","xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN"},"errors":[{"address":"::1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"},{"address":"127.0.0.1","code":"ECONNREFUSED","errno":-4078,"port":3001,"syscall":"connect"}],"level":"error","message":"Error in metrics collection and upload:","name":"AggregateError","request":{"_currentRequest":{"_closed":true,"_contentLength":503,"_defaultKeepAlive":true,"_ended":false,"_events":{},"_eventsCount":7,"_hasBody":true,"_header":"POST /api/metrics HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json\r\nAuthorization: Bearer your-agent-token-here\r\nUser-Agent: axios/1.11.0\r\nContent-Length: 503\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:3001\r\nConnection: keep-alive\r\n\r\n","_headerSent":true,"_keepAliveTimeout":0,"_last":false,"_redirectable":"[Circular]","_removedConnection":false,"_removedContLen":false,"_removedTE":false,"_trailer":"","aborted":false,"agent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"chunkedEncoding":false,"destroyed":true,"finished":true,"host":"localhost","maxHeadersCount":null,"maxRequestsOnConnectionReached":false,"method":"POST","outputData":[],"outputSize":0,"parser":null,"path":"/api/metrics","protocol":"http:","res":null,"reusedSocket":false,"sendDate":false,"shouldKeepAlive":true,"strictContentLength":false,"upgradeOrConnect":false,"useChunkedEncodingByDefault":true,"writable":true},"_currentUrl":"http://localhost:3001/api/metrics","_ended":true,"_ending":true,"_events":{"socket":[null,null]},"_eventsCount":3,"_options":{"agents":{},"beforeRedirects":{},"headers":{"Accept":"application/json, text/plain, */*","Accept-Encoding":"gzip, compress, deflate, br","Authorization":"Bearer your-agent-token-here","Content-Length":"503","Content-Type":"application/json","User-Agent":"axios/1.11.0"},"hostname":"localhost","maxBodyLength":null,"maxRedirects":21,"method":"POST","nativeProtocols":{"http:":{"METHODS":["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","QUERY","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"],"STATUS_CODES":{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"},"globalAgent":{"_events":{},"_eventsCount":2,"defaultPort":80,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"http:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0},"maxHeaderSize":16384},"https:":{"globalAgent":{"_events":{},"_eventsCount":2,"_sessionCache":{"list":[],"map":{}},"defaultPort":443,"freeSockets":{},"keepAlive":true,"keepAliveMsecs":1000,"maxCachedSessions":100,"maxFreeSockets":256,"maxSockets":null,"maxTotalSockets":null,"options":{"keepAlive":true,"noDelay":true,"path":null,"scheduling":"lifo","timeout":5000},"protocol":"https:","requests":{},"scheduling":"lifo","sockets":{},"totalSocketCount":0}}},"path":"/api/metrics","pathname":"/api/metrics","port":"3001","protocol":"http:"},"_redirectCount":0,"_redirects":[],"_requestBodyBuffers":[{"data":{"data":[123,34,109,101,116,114,105,99,115,34,58,91,123,34,116,121,112,101,34,58,34,115,121,115,116,101,109,34,44,34,99,112,117,85,115,97,103,101,34,58,50,50,46,51,55,49,53,51,48,53,53,56,55,54,57,49,52,53,44,34,114,97,109,85,115,97,103,101,34,58,49,48,51,54,50,46,49,49,55,49,56,55,53,44,34,114,97,109,84,111,116,97,108,34,58,49,50,49,54,51,46,53,57,55,54,53,54,50,53,44,34,100,105,115,107,85,115,97,103,101,34,58,52,53,53,51,50,50,46,50,55,51,52,51,55,53,44,34,100,105,115,107,84,111,116,97,108,34,58,49,52,52,49,52,50,57,46,51,48,52,54,56,55,53,44,34,110,101,116,119,111,114,107,73,110,34,58,48,46,48,48,52,56,48,53,51,52,57,52,51,52,53,53,57,54,53,54,44,34,110,101,116,119,111,114,107,79,117,116,34,58,48,46,48,50,56,51,56,52,48,54,48,52,49,57,56,51,54,54,56,53,44,34,112,114,111,99,101,115,115,67,111,117,110,116,34,58,50,56,49,44,34,108,111,97,100,65,118,101,114,97,103,101,34,58,48,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,50,53,58,51,53,46,52,57,56,90,34,125,44,123,34,116,121,112,101,34,58,34,112,114,111,106,101,99,116,34,44,34,112,114,111,106,101,99,116,78,97,109,101,34,58,34,116,101,115,116,45,97,112,105,45,112,114,111,106,101,99,116,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,50,53,58,51,53,46,52,57,56,90,34,44,34,112,114,111,106,101,99,116,68,105,115,107,85,115,97,103,101,34,58,55,46,52,57,48,54,51,51,57,54,52,53,51,56,53,55,52,125,93,44,34,97,103,101,110,116,34,58,123,34,118,101,114,115,105,111,110,34,58,34,49,46,48,46,48,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,50,48,50,53,45,48,55,45,50,52,84,48,56,58,50,53,58,52,50,46,48,56,51,90,34,125,125],"type":"Buffer"}}],"_requestBodyLength":503,"_timeout":null,"_writableState":{"bufferedIndex":0,"corked":0,"highWaterMark":16384,"length":0,"pendingcb":0,"writelen":0}},"service":"logvista-agent","stack":"AggregateError\n at AxiosError.from (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:899:14)\n at RedirectableRequest.handleRequestError (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:3228:25)\n at RedirectableRequest.emit (node:events:519:35)\n at eventHandlers. (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\follow-redirects\\index.js:49:24)\n at ClientRequest.emit (node:events:507:28)\n at emitErrorEvent (node:_http_client:104:11)\n at Socket.socketErrorListener (node:_http_client:518:5)\n at Socket.emit (node:events:507:28)\n at emitErrorNT (node:internal/streams/destroy:170:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at Axios.request (E:\\Freelance\\LogVistaV2\\agent\\node_modules\\axios\\dist\\node\\axios.cjs:4317:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Uploader.uploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:21:24)\n at async Uploader.withRetry (E:\\Freelance\\LogVistaV2\\agent\\src\\uploader.js:194:16)\n at async Scheduler.collectAndUploadMetrics (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:124:9)\n at async cron.schedule.scheduled [as _execution] (E:\\Freelance\\LogVistaV2\\agent\\src\\scheduler.js:28:7)","timestamp":"2025-07-24T08:25:42.098Z"} {"level":"info","message":"Received SIGINT, shutting down gracefully...","service":"logvista-agent","timestamp":"2025-07-24T08:25:42.260Z"} {"level":"error","message":"Upload failed for logs - Unknown Error:","service":"logvista-agent","timestamp":"2025-07-25T07:33:48.634Z"} {"level":"error","message":"Upload failed for metrics - Unknown Error:","service":"logvista-agent","timestamp":"2025-07-25T07:33:48.684Z"} {"level":"error","message":"Upload failed for logs - Unknown Error:","service":"logvista-agent","timestamp":"2025-07-25T07:33:48.687Z"} {"level":"error","message":"Upload failed for logs - Unknown Error:","service":"logvista-agent","timestamp":"2025-07-25T07:33:48.688Z"} {"level":"error","message":"Upload failed for logs - Unknown Error:","service":"logvista-agent","timestamp":"2025-07-25T07:33:48.700Z"} {"level":"info","message":"Started watching log file: C:\\Users\\Acer\\AppData\\Local\\Temp\\logvista-test-1753429189931\\test.log for project: Test Project","service":"logvista-agent","timestamp":"2025-07-25T07:39:49.940Z"} {"level":"info","message":"Started watching project logs in: C:\\Users\\Acer\\AppData\\Local\\Temp\\logvista-test-1753429189931","service":"logvista-agent","timestamp":"2025-07-25T07:39:49.950Z"} {"level":"error","message":"Upload failed for logs - Unknown Error:","service":"logvista-agent","timestamp":"2025-07-25T07:39:50.089Z"} {"level":"error","message":"Upload failed for metrics - Unknown Error:","service":"logvista-agent","timestamp":"2025-07-25T07:39:50.133Z"} {"level":"error","message":"Upload failed for logs - Unknown Error:","service":"logvista-agent","timestamp":"2025-07-25T07:39:50.136Z"} {"level":"error","message":"Upload failed for logs - Unknown Error:","service":"logvista-agent","timestamp":"2025-07-25T07:39:50.168Z"} {"level":"info","message":"Started watching log file: C:\\Users\\Acer\\AppData\\Local\\Temp\\logvista-test-1753429332653\\test.log for project: Test Project","service":"logvista-agent","timestamp":"2025-07-25T07:42:12.693Z"} {"level":"info","message":"Started watching project logs in: C:\\Users\\Acer\\AppData\\Local\\Temp\\logvista-test-1753429332653","service":"logvista-agent","timestamp":"2025-07-25T07:42:12.715Z"} {"level":"info","message":"Successfully uploaded 2 log records","service":"logvista-agent","timestamp":"2025-07-25T07:42:13.213Z"} {"level":"info","message":"Successfully uploaded 1 metric records","service":"logvista-agent","timestamp":"2025-07-25T07:42:13.244Z"} {"level":"error","message":"Upload failed for logs - Unknown Error:","service":"logvista-agent","timestamp":"2025-07-25T07:42:13.248Z"} {"data":{"error":"Unauthorized"},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":401,"timestamp":"2025-07-25T07:42:13.266Z"} {"level":"info","message":"Started watching log file: C:\\Users\\Acer\\AppData\\Local\\Temp\\logvista-test-1753430178243\\test.log for project: Test Project","service":"logvista-agent","timestamp":"2025-07-25T07:56:18.255Z"} {"level":"info","message":"Started watching project logs in: C:\\Users\\Acer\\AppData\\Local\\Temp\\logvista-test-1753430178243","service":"logvista-agent","timestamp":"2025-07-25T07:56:18.260Z"} {"level":"info","message":"Successfully uploaded 2 log records","service":"logvista-agent","timestamp":"2025-07-25T07:56:18.512Z"} {"level":"info","message":"Successfully uploaded 1 metric records","service":"logvista-agent","timestamp":"2025-07-25T07:56:18.528Z"} {"level":"error","message":"Upload failed for logs - Unknown Error:","service":"logvista-agent","timestamp":"2025-07-25T07:56:18.532Z"} {"data":{"error":"Unauthorized"},"level":"error","message":"Upload failed for logs - Server Error:","service":"logvista-agent","status":401,"timestamp":"2025-07-25T07:56:18.577Z"}