GithubHelp home page GithubHelp logo

Comments (5)

achapkowski avatar achapkowski commented on June 19, 2024

What version of ArcGIS Server are you using?
Can you please provide the code that is failing so I can try to reproduce the issue?

Thank you

from arcrest.

sagewall avatar sagewall commented on June 19, 2024

Using ArcGIS Server 10.2.

Code below

import jeffco
import base64
import arcrest
import json
from datetime import datetime
from datetime import timedelta

credentials = jeffco.credentials.ArcGISServerCredentials("advagi002")
username = base64.b64decode(credentials.username)
password = base64.b64decode(credentials.password)
securityHandler = arcrest.AGSTokenSecurityHandler(username, password, r"http://advagi001/arcgis/tokens/")

log_url = r"http://advagi002:6080/arcgis/admin/logs"
log = arcrest.manageags.administration.Log(log_url, securityHandler)
#print log.countErrorReports()
print log.logSettings
#print log.query()


endTime = datetime.now()
startTime = endTime - timedelta(minutes=30)


log_data = log.query(startTime, endTime, "", "WARNING")
print log_data
for log_message in log_data["logMessages"]:
    print log_message

When I change the code as described in my original comment the function works as expected limiting the results to be in between the start and end times.

Thanks,
Sage

from arcrest.

achapkowski avatar achapkowski commented on June 19, 2024

Thanks Sage for this information, I will take a look at this.

from arcrest.

achapkowski avatar achapkowski commented on June 19, 2024

Issue fixed, please pull the new version. Thank you for letting us know about this issue.

from arcrest.

sagewall avatar sagewall commented on June 19, 2024

Thank you for fixing it so quickly and for this great python package.

from arcrest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.