Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data from ChangeLog on the IP address #2701

Open
zx18018 opened this issue Aug 14, 2019 · 6 comments
Open

data from ChangeLog on the IP address #2701

zx18018 opened this issue Aug 14, 2019 · 6 comments

Comments

@zx18018
Copy link

zx18018 commented Aug 14, 2019

How it is possible to obtain data from ChangeLog on the IP address?
from ChangeLog information on Users and Date is necessary

@zombah
Copy link
Contributor

zombah commented Aug 14, 2019

@zx18018 When you enter ipaddress details there is Changelog section on the right side:
phpipam-address-changelog

@zx18018
Copy link
Author

zx18018 commented Aug 15, 2019

I need to obtain data through api or RESt

@zombah
Copy link
Contributor

zombah commented Aug 15, 2019

There is no currently REST API to changelog module, use can query MySQL DB directly or via redirecting syslog to some system with api.

@zx18018
Copy link
Author

zx18018 commented Aug 16, 2019

I know there is no such module, so I ask here. Maybe someone already did it? Can anyone know how to get this data from DB?

@zombah
Copy link
Contributor

zombah commented Aug 16, 2019

It's in table changelog. For example:

SELECT changelog.ctype,changelog.coid,ipaddresses.hostname,users.username,changelog.cdate
FROM changelog 
    LEFT JOIN users ON changelog.cuser = users.id
    LEFT JOIN ipaddresses ON changelog.coid = ipaddresses.id
LIMIT 10;

@Anyone9060
Copy link

Is there a recommended method of viewing DB data directly? Or a guide for how someone would view that data? It may be helpful for my issue here: ChangeLog viewing and row limits #4092

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants