Skip to content

Instantly share code, notes, and snippets.

FLOAT %{INT}\.[0-9]+
GC_TAG [^)]+
GC_TYPE [a-z-]+
GC_MEMORY_UNIT K|M|G
JVMGCLOG %{TIMESTAMP_ISO8601:logdate}: %{FLOAT}: \[GC( %{GC_TYPE})?( \(%{GC_TAG}\))* ?( %{INT:gc_memory_before:int}%{GC_MEMORY_UNIT:gc_memory_before_unit}->%{INT:gc_memory_after:int}%{GC_MEMORY_UNIT:gc_memory_after_unit}\(%{INT}%{GC_MEMORY_UNIT}\))?, %{FLOAT:gc_duration:float} secs\]
JVM_GC_STOPPED_TIME %{TIMESTAMP_ISO8601:logdate}: %{FLOAT}: Total time for which application threads were stopped: %{FLOAT:gc_app_stopped:float} seconds, Stopping threads took: %{FLOAT:gc_stopping_took:float} seconds
aliasByNode(sumSeriesWithWildcards(sync.$environment.$datacenter.$host.counters.app.initial_sync.rate, 2, 3), 4)
blist == 1.3.6
celery == 3.1.20
coverage == 3.7.1
django == 1.9.3
django-cassandra-engine == 0.7.2
django-cors-headers == 1.1.0
django-nose == 1.4.1
django_extensions == 1.6.1
djangorestframework == 3.1.3
futures == 3.0.2
int VarintLength(uint64_t v) {
int len = 1;
while (v >= 128) {
v >>= 7;
len++;
}
return len;
}
char* EncodeVarint32(char* dst, uint32_t v) {
@mlowicki
mlowicki / sentrycli group by tags and header
Last active June 6, 2016 21:24
sentrycli group by tags and header
> sentrycli group 77268.json --tag browser server_name --header Content-Type
+--------------------------+-----------------+----------------------+-------+------+
| Content-Type | browser | server_name | count | % |
+--------------------------+-----------------+----------------------+-------+------+
| application/octet-stream | Opera Mini 14.0 | front3.sync.lati.osa | 55 | 18.6 |
| application/octet-stream | Opera Mini 14.0 | front4.sync.lati.osa | 53 | 18.0 |
| application/octet-stream | Opera Mini 14.0 | front5.sync.lati.osa | 52 | 17.6 |
| application/octet-stream | Opera Mini 14.0 | front6.sync.lati.osa | 48 | 16.3 |
| application/octet-stream | Opera Mini 14.0 | front1.sync.lati.osa | 45 | 15.3 |
| application/octet-stream | Opera Mini 14.0 | front2.sync.lati.osa | 42 | 14.2 |
> sentrycli group 77268.json --ctime daily
+------------+-------+-----+
| day | count | % |
+------------+-------+-----+
| 2016-04-09 | 25 | 8.5 |
| 2016-04-10 | 27 | 9.2 |
| 2016-04-11 | 14 | 4.7 |
| 2016-04-12 | 8 | 2.7 |
| 2016-04-13 | 11 | 3.7 |
...
> sentrycli query 77268 --limit 100
...
INFO:sentrycli.query:100 events saved to /Users/mlowicki/projects/sync/77268.json
> sentrycli query 77268 --since 20160430
...
INFO:sentrycli.query:21 events saved to /Users/mlowicki/projects/sync/77268.json
> sentrycli query 77268
...
INFO:sentrycli.query:295 events saved to /Users/mlowicki/projects/sync/77268.json
> sentrycli query 77268 --api-key xxxxxxxxxxxxxxxxxx --host http://errors.services.ams.osa
...
INFO:sentrycli.query:295 events saved to /Users/mlowicki/projects/sync/77268.json
> sentrycli group 62456.json --variable validation_needed
+-------------------+-------+-------+
| validation_needed | count | % |
+-------------------+-------+-------+
| False | 295 | 100.0 |
+-------------------+-------+-------+
Total: 295