Comments (5)
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.
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.
Thanks Sage for this information, I will take a look at this.
from arcrest.
Issue fixed, please pull the new version. Thank you for letting us know about this issue.
from arcrest.
Thank you for fixing it so quickly and for this great python package.
from arcrest.
Related Issues (20)
- createReplica does not work for feature services inside folder HOT 1
- arcrest.ags.server._validateurl() Mangles Compound Web Context Names HOT 5
- Migrating from AGOL to Server HOT 3
- Append with a new Schema and Attachments
- Does this work with Arcgis Online Enterprise accounts? HOT 5
- Can disable sync be used to enable sync? HOT 1
- Attribute error 'module' object has no attribute 'create_default_context HOT 2
- Intermittent HTTP 403 issues using DeleteFeaturesFromFeatureLayer HOT 3
- ArcRest was working then quit--no changes to script HOT 18
- createReplica will not return records for a table HOT 18
- Looking for additional information
- Misspelling for geometry filter? HOT 2
- ArcRest "arcrest.agol.services.FeatureService.createReplica" tool failing HOT 1
- .addFeatures doesn't copy over all features
- Sample script for metadata import
- ArcRest "arcrest.agol.services.FeatureService.createReplica" works on one ArcGIS Online organization but not another HOT 10
- BUG
- create_replica_portal_item.py - Download permissions HOT 1
- usercontent error: HOT 14
- Importing webmap HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arcrest.