I've been looking for this functionality as well.
I use gam print cros every day at a scheduled time to pull data and put it into my own database. I see that the data is inevitably growing and it's taking me longer and longer every day to sift through the data. Is there a way to limit the output to only include data from the last "X" days, activitty from the last "X" days, and/or limit logons to last "X" number of users, etc etc?
I see there is a query that can be added to the command but I don't see any documentation on what's available in the query or what the syntax is. I also saw a random post at some point where someone had added limit syntax into the gam print cros and suggested a merge into the code but I couldn't find if that had been completed.
--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/62a64bd5-afbb-49d6-beb5-5883e654c556%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I use gam print cros every day at a scheduled time to pull data and put it into my own database. I see that the data is inevitably growing and it's taking me longer and longer every day to sift through the data. Is there a way to limit the output to only include data from the last "X" days, activitty from the last "X" days, and/or limit logons to last "X" number of users, etc etc?
I see there is a query that can be added to the command but I don't see any documentation on what's available in the query or what the syntax is. I also saw a random post at some point where someone had added limit syntax into the gam print cros and suggested a merge into the code but I couldn't find if that had been completed.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAK%3DuFK3Ekts6LoWiOsPZSfu3_jGQzgc9U-U-2%3DQ81fuE_010oA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Jay
The delay is with manipulating the data, not pulling it from Google I assume (since that's scheduled)?You could do something like:gam print cros orderby lastsync | head -n 1000 > 1000-most-recent-active-cros-devices.csvthat should work on Mac and Linux, on Windows, I'm sure there's a powershell equivalent to trim the output and I'm sure it's convoluted (oops, sorry for the personal opinion on Windows / Powershell) :-)Jay
On Tue, Jun 7, 2016 at 9:52 AM Scott Burchill <sbur...@dasd.k12.wi.us> wrote:
I've been looking for this functionality as well.
On Jun 7, 2016 7:57 AM, "Matt S" <synt...@gmail.com> wrote:
I use gam print cros every day at a scheduled time to pull data and put it into my own database. I see that the data is inevitably growing and it's taking me longer and longer every day to sift through the data. Is there a way to limit the output to only include data from the last "X" days, activitty from the last "X" days, and/or limit logons to last "X" number of users, etc etc?--
I see there is a query that can be added to the command but I don't see any documentation on what's available in the query or what the syntax is. I also saw a random post at some point where someone had added limit syntax into the gam print cros and suggested a merge into the code but I couldn't find if that had been completed.
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/62a64bd5-afbb-49d6-beb5-5883e654c556%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAK%3DuFK3Ekts6LoWiOsPZSfu3_jGQzgc9U-U-2%3DQ81fuE_010oA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--Jay
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/46b2e2b4-1308-497d-ae2d-906fb666d5ae%40googlegroups.com.
Matt,
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/62a64bd5-afbb-49d6-beb5-5883e654c556%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAK%3DuFK3Ekts6LoWiOsPZSfu3_jGQzgc9U-U-2%3DQ81fuE_010oA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--Jay
--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/46b2e2b4-1308-497d-ae2d-906fb666d5ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.