Help me, with synthetic monitor with hearbeat and zip url doesn't work

Please, help me, what another info do you need?

{"log.level":"info","@timestamp":"2022-08-19T18:52:57.620Z","log.origin":{"file.name":"source/local.go","file.line":146},"message":"Ran /usr/share/heartbeat/.node/node/bin/npm install (254) got 'npm ERR! code ENOENT\nnpm ERR! syscall open\nnpm ERR! path /tmp/elastic-synthetics-unzip-3062228563/package.json\nnpm ERR! errno -2\nnpm ERR! enoent ENOENT: no such file or directory, open '/tmp/elastic-synthetics-unzip-3062228563/package.json'\nnpm ERR! enoent This is related to npm not being able to find a file.\nnpm ERR! enoent \n\nnpm ERR! A complete log of this run can be found in:\nnpm ERR!     /usr/share/heartbeat/.npm/_logs/2022-08-19T18_52_56_937Z-debug-0.log\n': (exit status 254) as (1000/1000)","service.name":"heartbeat","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2022-08-19T18:52:57.622Z","log.logger":"processors","log.origin":{"file.name":"processing/processors.go","file.line":210},"message":"Publish event: {\n  \"@timestamp\": \"2022-08-19T18:52:57.622Z\",\n  \"@metadata\": {\n    \"beat\": \"heartbeat\",\n    \"type\": \"_doc\",\n    \"version\": \"8.3.3\"\n  },\n  \"ecs\": {\n    \"version\": \"8.0.0\"\n  },\n  \"agent\": {\n    \"name\": \"3a21a0c3dc7a\",\n    \"type\": \"heartbeat\",\n    \"version\": \"8.3.3\",\n    \"ephemeral_id\": \"4306b2b4-a01b-49c0-8dab-d8efd90bca04\",\n    \"id\": \"bcee9be4-34cc-482b-81cf-b9c4a4d0d664\"\n  },\n  \"monitor\": {\n    \"timespan\": {\n      \"gte\": \"2022-08-19T18:52:57.622Z\",\n      \"lt\": \"2022-08-19T18:55:57.622Z\"\n    },\n    \"type\": \"browser\",\n    \"project\": {\n      \"name\": \"CANVIA-AULAVIRTUAL\",\n      \"id\": \"AULAVIRTUAL\"\n    }\n  },\n  \"alp\": 103333,\n  \"cliente\": \"CANVIA_02\",\n  \"event\": {\n    \"dataset\": \"browser\"\n  },\n  \"observer\": {\n    \"ip\": [\n      \"172.17.0.2\"\n    ],\n    \"mac\": [\n      \"02:42:ac:11:00:02\"\n    ],\n    \"hostname\": \"3a21a0c3dc7a\",\n    \"geo\": {\n      \"continent_name\": \"South America\",\n      \"city_name\": \"Lima\",\n      \"name\": \"Lima\"\n    }\n  }\n}","service.name":"heartbeat","ecs.version":"1.6.0"}

Hi @odelacruzc.

The error message indicates that it couldn't find the package.json in the remote endpoint.
Can you confirm that your remote endpoint has been properly set up as a NPM project?

You can find the documentation here, and also you can take a look at a few examples how to set up your synthetics test project here.

Hi @kyungeunni I can set my monitor with zip url. but doesn't see in uptime, I only can see the bar in time series T_T

Apologies for the delay @odelacruzc , I'd strongly recommend moving away from zip_url monitors which are tricky to troubleshoot. In the Elastic stack 8.4.0 we support project monitors, which let you push monitors into the elastic stack. These can run locally on heartbeat nodes, or on fleet / elastic agent with the private locations feature in 8.4.0

With project monitors this category of error you're seeing goes away.

I've opened [Synthetics] Remove all references to zip_url monitors · Issue #2149 · elastic/observability-docs · GitHub to track the docs change here.

This topic was automatically closed 24 days after the last reply. New replies are no longer allowed.