What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

question about exporting logs

Votes:

0

hello. i am new to PRTG and had a question about how to export logs. i found this post.

https://www.paessler.com/manuals/prtg/http_api

my questions is how to combine the two commands to incorporate name and password to allow the export.

https://yourserver/api/table.xml?content=sensors&columns=sensor&output=csvtable

https://yourserver/api/table.xml?content=sensors&columns=sensor&username=myuser&password=mypassword

thank you

export prtg prtg-api

Created on Feb 2, 2022 8:17:03 PM

Last change on Feb 3, 2022 7:35:43 AM by  Felix Wiesneth [Paessler Support]



5 Replies

Votes:

0

Hi there,

You can just add the authentication right after your call with a "&". This means your call should look like this:

https://yourserver/api/table.xml?content=sensors&columns=sensor&output=csvtable&username=myuser&password=mypassword

Kind regards

Felix Wiesneth - Team Tech Support

Created on Feb 4, 2022 7:25:31 AM by  Felix Wiesneth [Paessler Support]



Votes:

0

Excellent. Thank you. This worked and leads me to another question. How would I work the credentials into the following historical data query?

https://yourserver/api/historicdata.csv?id=objectid&avg=0&sdate=2022-01-30-00-00-00&edate=2022-01-31-00-00-00

Thanks so much for the assistance.

Created on Feb 4, 2022 11:43:50 AM



Votes:

0

Hi there,

It will be always possible to add you credentials with a "&" at the end of your call. Just add to your calls following:

&username=myuser&password=mypassword

Kind regards

Felix Wiesneth - Team Tech Support

Created on Feb 4, 2022 1:22:34 PM by  Felix Wiesneth [Paessler Support]



Votes:

0

Thank you for reply. I seem to have a challenge. When I add that snippet to end of line is get "This site can’t be reached". If I try to line without creds I get "Unauthorized".

https://yourserver/api/historicdata.csv?id=objectid&avg=0&sdate=2022-01-30-00-00-00&edate=2022-01-31-00-00-00&username=myuser&password=mypassword

Is there anything else I can try. I am trying to get some historical data from an outage.

Thank you.

Created on Feb 4, 2022 2:11:21 PM



Votes:

0

Hi there,

Did you check if the ID exists in your call?
As an alternative you can create this call also from tab Historic Data in the sensor directly.


Kind regards

Felix Wiesneth - Team Tech Support

Created on Feb 7, 2022 8:07:53 AM by  Felix Wiesneth [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.