UNPKG

log-vista

Version:

LogVista Agent - Lightweight system monitoring and log collection for any project/language

29 lines 1.06 MB
{"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