Access logs posted from API

Hello, I’m struggling to access/see API logs. I have send some data using post method below:
let t = {
“timestamp”: “1562767499238”,
“message”: { “service-name”: “my-service”, “user”: { “id”: 123, “name”: “alice” } },
“log”: “test log”
fetch(newRelicEndpoint, {
method: ‘POST’,
headers: {
‘Content-Type’: ‘application/json’,
‘X-License-Key’: ‘xxxxxxxx’,
‘Accept’: ‘/
body: JSON.stringify(t)

The method is successfuly executed, the result is OK. But I can not see data in New Relic. Under logs I have only the option to Get started by “Add your data”, but there is no option to chose API, and data are already added. Should I do it this way? which option should I choose? Where can I see the data?

“timestamp”: “1562767499238”

Hi, @matejgovek: The value of your timestamp corresponds to 10 July 2019. Try inserting a log message with a more current timestamp. You may use this website to convert a date to timestamp, and vice versa: Unix Time Stamp - Epoch Converter.

1 Like

Thank you, for the response. With current timestamp I can see logs. Problem solved :slight_smile:

1 Like