0

Afternoon

The Marketing Team have lost alot of data at my current place of work. I am running PM2 in putty I am currently using pm2 logs 'applicationname' -1000 lines to get the data I need This works

But is there a good way to export the data

perhaps a csv or .json ?

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992

1 Answers1

0

You should be able to find logs in $HOME/.pm2/logs/*

and then it's easy to convert it to anything you want for xample: .log file read and convert to json

Andrej
  • 161
  • 1
  • 5
  • Also for CSV (comma separated values) - https://stackoverflow.com/questions/70473534/transform-a-log-file-to-csv-using-pandas – Andrej May 18 '22 at 18:52