@creationix/jot 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +92 -0
- package/SUMMARY.md +151 -0
- package/TOKEN_COUNTS.md +97 -0
- package/bun.lock +19 -0
- package/jot.test.ts +133 -0
- package/jot.ts +650 -0
- package/package.json +10 -0
- package/samples/chat.jot +1 -0
- package/samples/chat.json +1 -0
- package/samples/chat.pretty.jot +6 -0
- package/samples/chat.pretty.json +16 -0
- package/samples/firewall.jot +1 -0
- package/samples/firewall.json +1 -0
- package/samples/firewall.pretty.jot +235 -0
- package/samples/firewall.pretty.json +344 -0
- package/samples/github-issue.jot +1 -0
- package/samples/github-issue.json +1 -0
- package/samples/github-issue.pretty.jot +15 -0
- package/samples/github-issue.pretty.json +20 -0
- package/samples/hikes.jot +1 -0
- package/samples/hikes.json +1 -0
- package/samples/hikes.pretty.jot +14 -0
- package/samples/hikes.pretty.json +38 -0
- package/samples/irregular.jot +1 -0
- package/samples/irregular.json +1 -0
- package/samples/irregular.pretty.jot +13 -0
- package/samples/irregular.pretty.json +23 -0
- package/samples/json-counts-cache.jot +1 -0
- package/samples/json-counts-cache.json +1 -0
- package/samples/json-counts-cache.pretty.jot +26 -0
- package/samples/json-counts-cache.pretty.json +26 -0
- package/samples/key-folding-basic.jot +1 -0
- package/samples/key-folding-basic.json +1 -0
- package/samples/key-folding-basic.pretty.jot +7 -0
- package/samples/key-folding-basic.pretty.json +25 -0
- package/samples/key-folding-mixed.jot +1 -0
- package/samples/key-folding-mixed.json +1 -0
- package/samples/key-folding-mixed.pretty.jot +16 -0
- package/samples/key-folding-mixed.pretty.json +24 -0
- package/samples/key-folding-with-array.jot +1 -0
- package/samples/key-folding-with-array.json +1 -0
- package/samples/key-folding-with-array.pretty.jot +6 -0
- package/samples/key-folding-with-array.pretty.json +29 -0
- package/samples/large.jot +1 -0
- package/samples/large.json +1 -0
- package/samples/large.pretty.jot +72 -0
- package/samples/large.pretty.json +93 -0
- package/samples/logs.jot +1 -0
- package/samples/logs.json +1 -0
- package/samples/logs.pretty.jot +96 -0
- package/samples/logs.pretty.json +350 -0
- package/samples/medium.jot +1 -0
- package/samples/medium.json +1 -0
- package/samples/medium.pretty.jot +13 -0
- package/samples/medium.pretty.json +30 -0
- package/samples/metrics.jot +1 -0
- package/samples/metrics.json +1 -0
- package/samples/metrics.pretty.jot +11 -0
- package/samples/metrics.pretty.json +25 -0
- package/samples/package.jot +1 -0
- package/samples/package.json +1 -0
- package/samples/package.pretty.jot +18 -0
- package/samples/package.pretty.json +18 -0
- package/samples/products.jot +1 -0
- package/samples/products.json +1 -0
- package/samples/products.pretty.jot +69 -0
- package/samples/products.pretty.json +235 -0
- package/samples/routes.jot +1 -0
- package/samples/routes.json +1 -0
- package/samples/routes.pretty.jot +142 -0
- package/samples/routes.pretty.json +354 -0
- package/samples/small.jot +1 -0
- package/samples/small.json +1 -0
- package/samples/small.pretty.jot +8 -0
- package/samples/small.pretty.json +12 -0
- package/samples/users-50.jot +1 -0
- package/samples/users-50.json +1 -0
- package/samples/users-50.pretty.jot +53 -0
- package/samples/users-50.pretty.json +354 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"events": [
|
|
3
|
+
{
|
|
4
|
+
"type": "click",
|
|
5
|
+
"x": 100,
|
|
6
|
+
"y": 200
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"type": "scroll",
|
|
10
|
+
"offset": 450
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"type": "keypress",
|
|
14
|
+
"key": "Enter",
|
|
15
|
+
"shift": true
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"type": "resize",
|
|
19
|
+
"width": 1920,
|
|
20
|
+
"height": 1080
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{timestamp:1768022488022,miniTokens:7748,miniBytes:23119,prettyTokens:12656,prettyBytes:39884,miniPerFile:{chat:76,metrics:117,large:266,key-folding-mixed:78,logs:2108,firewall:827,small:48,github-issue:88,users-50:1279,medium:97,hikes:158,package:97,key-folding-basic:58,irregular:68,key-folding-with-array:58,products:866,routes:1459}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"timestamp":1768022488022,"miniTokens":7748,"miniBytes":23119,"prettyTokens":12656,"prettyBytes":39884,"miniPerFile":{"chat":76,"metrics":117,"large":266,"key-folding-mixed":78,"logs":2108,"firewall":827,"small":48,"github-issue":88,"users-50":1279,"medium":97,"hikes":158,"package":97,"key-folding-basic":58,"irregular":68,"key-folding-with-array":58,"products":866,"routes":1459}}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
timestamp: 1768022488022,
|
|
3
|
+
miniTokens: 7748,
|
|
4
|
+
miniBytes: 23119,
|
|
5
|
+
prettyTokens: 12656,
|
|
6
|
+
prettyBytes: 39884,
|
|
7
|
+
miniPerFile: {
|
|
8
|
+
chat: 76,
|
|
9
|
+
metrics: 117,
|
|
10
|
+
large: 266,
|
|
11
|
+
key-folding-mixed: 78,
|
|
12
|
+
logs: 2108,
|
|
13
|
+
firewall: 827,
|
|
14
|
+
small: 48,
|
|
15
|
+
github-issue: 88,
|
|
16
|
+
users-50: 1279,
|
|
17
|
+
medium: 97,
|
|
18
|
+
hikes: 158,
|
|
19
|
+
package: 97,
|
|
20
|
+
key-folding-basic: 58,
|
|
21
|
+
irregular: 68,
|
|
22
|
+
key-folding-with-array: 58,
|
|
23
|
+
products: 866,
|
|
24
|
+
routes: 1459
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"timestamp": 1768022488022,
|
|
3
|
+
"miniTokens": 7748,
|
|
4
|
+
"miniBytes": 23119,
|
|
5
|
+
"prettyTokens": 12656,
|
|
6
|
+
"prettyBytes": 39884,
|
|
7
|
+
"miniPerFile": {
|
|
8
|
+
"chat": 76,
|
|
9
|
+
"metrics": 117,
|
|
10
|
+
"large": 266,
|
|
11
|
+
"key-folding-mixed": 78,
|
|
12
|
+
"logs": 2108,
|
|
13
|
+
"firewall": 827,
|
|
14
|
+
"small": 48,
|
|
15
|
+
"github-issue": 88,
|
|
16
|
+
"users-50": 1279,
|
|
17
|
+
"medium": 97,
|
|
18
|
+
"hikes": 158,
|
|
19
|
+
"package": 97,
|
|
20
|
+
"key-folding-basic": 58,
|
|
21
|
+
"irregular": 68,
|
|
22
|
+
"key-folding-with-array": 58,
|
|
23
|
+
"products": 866,
|
|
24
|
+
"routes": 1459
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{server.host:localhost,database.connection.username:admin,app.info.name:MyApp,release.meta.version:1.0.0,cache.layer.ttlSeconds:300}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"server":{"host":"localhost"},"database":{"connection":{"username":"admin"}},"app":{"info":{"name":"MyApp"}},"release":{"meta":{"version":"1.0.0"}},"cache":{"layer":{"ttlSeconds":300}}}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"server": {
|
|
3
|
+
"host": "localhost"
|
|
4
|
+
},
|
|
5
|
+
"database": {
|
|
6
|
+
"connection": {
|
|
7
|
+
"username": "admin"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"app": {
|
|
11
|
+
"info": {
|
|
12
|
+
"name": "MyApp"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"release": {
|
|
16
|
+
"meta": {
|
|
17
|
+
"version": "1.0.0"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"cache": {
|
|
21
|
+
"layer": {
|
|
22
|
+
"ttlSeconds": 300
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{app:{name:MyApp,version:2.1.0},server:{host:localhost,port:8080,ssl:{enabled:true,cert:/path/to/cert.pem}},database.connection.url:"postgresql://localhost:5432/mydb",feature.flags.beta:true}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"app":{"name":"MyApp","version":"2.1.0"},"server":{"host":"localhost","port":8080,"ssl":{"enabled":true,"cert":"/path/to/cert.pem"}},"database":{"connection":{"url":"postgresql://localhost:5432/mydb"}},"feature":{"flags":{"beta":true}}}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
app: {
|
|
3
|
+
name: MyApp,
|
|
4
|
+
version: 2.1.0
|
|
5
|
+
},
|
|
6
|
+
server: {
|
|
7
|
+
host: localhost,
|
|
8
|
+
port: 8080,
|
|
9
|
+
ssl: {
|
|
10
|
+
enabled: true,
|
|
11
|
+
cert: /path/to/cert.pem
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
database.connection.url: "postgresql://localhost:5432/mydb",
|
|
15
|
+
feature.flags.beta: true
|
|
16
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"app": {
|
|
3
|
+
"name": "MyApp",
|
|
4
|
+
"version": "2.1.0"
|
|
5
|
+
},
|
|
6
|
+
"server": {
|
|
7
|
+
"host": "localhost",
|
|
8
|
+
"port": 8080,
|
|
9
|
+
"ssl": {
|
|
10
|
+
"enabled": true,
|
|
11
|
+
"cert": "/path/to/cert.pem"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"database": {
|
|
15
|
+
"connection": {
|
|
16
|
+
"url": "postgresql://localhost:5432/mydb"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"feature": {
|
|
20
|
+
"flags": {
|
|
21
|
+
"beta": true
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{api.endpoint.url:"https://api.example.com",data.meta.items:[widget,gadget,tool],stats.meta.count:3,user.preferences.tags:[productivity,development]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"api":{"endpoint":{"url":"https://api.example.com"}},"data":{"meta":{"items":["widget","gadget","tool"]}},"stats":{"meta":{"count":3}},"user":{"preferences":{"tags":["productivity","development"]}}}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"api": {
|
|
3
|
+
"endpoint": {
|
|
4
|
+
"url": "https://api.example.com"
|
|
5
|
+
}
|
|
6
|
+
},
|
|
7
|
+
"data": {
|
|
8
|
+
"meta": {
|
|
9
|
+
"items": [
|
|
10
|
+
"widget",
|
|
11
|
+
"gadget",
|
|
12
|
+
"tool"
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"stats": {
|
|
17
|
+
"meta": {
|
|
18
|
+
"count": 3
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"user": {
|
|
22
|
+
"preferences": {
|
|
23
|
+
"tags": [
|
|
24
|
+
"productivity",
|
|
25
|
+
"development"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{apiVersion:"2.0",kind:Deployment,metadata:{name:web-server,namespace:production,labels:{app:web,tier:frontend,environment:production}},spec:{replicas:3,selector.matchLabels:{app:web,tier:frontend},template:{metadata.labels:{app:web,tier:frontend,version:1.2.3},spec.containers:[{name:nginx,image:"nginx:1.21",ports:{{:containerPort,protocol;80,TCP;443,TCP}},resources:{requests:{cpu:100m,memory:128Mi},limits:{cpu:500m,memory:512Mi}},env:{{:name,value;NODE_ENV,production;LOG_LEVEL,info;MAX_CONNECTIONS,"1000"}}},{name:sidecar,image:"envoy:1.20",ports:[{containerPort:8080,protocol:TCP}],resources:{requests:{cpu:50m,memory:64Mi},limits:{cpu:200m,memory:256Mi}}}]}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"apiVersion":"2.0","kind":"Deployment","metadata":{"name":"web-server","namespace":"production","labels":{"app":"web","tier":"frontend","environment":"production"}},"spec":{"replicas":3,"selector":{"matchLabels":{"app":"web","tier":"frontend"}},"template":{"metadata":{"labels":{"app":"web","tier":"frontend","version":"1.2.3"}},"spec":{"containers":[{"name":"nginx","image":"nginx:1.21","ports":[{"containerPort":80,"protocol":"TCP"},{"containerPort":443,"protocol":"TCP"}],"resources":{"requests":{"cpu":"100m","memory":"128Mi"},"limits":{"cpu":"500m","memory":"512Mi"}},"env":[{"name":"NODE_ENV","value":"production"},{"name":"LOG_LEVEL","value":"info"},{"name":"MAX_CONNECTIONS","value":"1000"}]},{"name":"sidecar","image":"envoy:1.20","ports":[{"containerPort":8080,"protocol":"TCP"}],"resources":{"requests":{"cpu":"50m","memory":"64Mi"},"limits":{"cpu":"200m","memory":"256Mi"}}}]}}}}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
apiVersion: "2.0",
|
|
3
|
+
kind: Deployment,
|
|
4
|
+
metadata: {
|
|
5
|
+
name: web-server,
|
|
6
|
+
namespace: production,
|
|
7
|
+
labels: {
|
|
8
|
+
app: web,
|
|
9
|
+
tier: frontend,
|
|
10
|
+
environment: production
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
spec: {
|
|
14
|
+
replicas: 3,
|
|
15
|
+
selector.matchLabels: {
|
|
16
|
+
app: web,
|
|
17
|
+
tier: frontend
|
|
18
|
+
},
|
|
19
|
+
template: {
|
|
20
|
+
metadata.labels: {
|
|
21
|
+
app: web,
|
|
22
|
+
tier: frontend,
|
|
23
|
+
version: 1.2.3
|
|
24
|
+
},
|
|
25
|
+
spec.containers: [
|
|
26
|
+
{
|
|
27
|
+
name: nginx,
|
|
28
|
+
image: "nginx:1.21",
|
|
29
|
+
ports: {{
|
|
30
|
+
:containerPort, protocol
|
|
31
|
+
80, TCP
|
|
32
|
+
443, TCP
|
|
33
|
+
}},
|
|
34
|
+
resources: {
|
|
35
|
+
requests: {
|
|
36
|
+
cpu: 100m,
|
|
37
|
+
memory: 128Mi
|
|
38
|
+
},
|
|
39
|
+
limits: {
|
|
40
|
+
cpu: 500m,
|
|
41
|
+
memory: 512Mi
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
env: {{
|
|
45
|
+
:name, value
|
|
46
|
+
NODE_ENV, production
|
|
47
|
+
LOG_LEVEL, info
|
|
48
|
+
MAX_CONNECTIONS, "1000"
|
|
49
|
+
}}
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: sidecar,
|
|
53
|
+
image: "envoy:1.20",
|
|
54
|
+
ports: [{
|
|
55
|
+
containerPort: 8080,
|
|
56
|
+
protocol: TCP
|
|
57
|
+
}],
|
|
58
|
+
resources: {
|
|
59
|
+
requests: {
|
|
60
|
+
cpu: 50m,
|
|
61
|
+
memory: 64Mi
|
|
62
|
+
},
|
|
63
|
+
limits: {
|
|
64
|
+
cpu: 200m,
|
|
65
|
+
memory: 256Mi
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"apiVersion": "2.0",
|
|
3
|
+
"kind": "Deployment",
|
|
4
|
+
"metadata": {
|
|
5
|
+
"name": "web-server",
|
|
6
|
+
"namespace": "production",
|
|
7
|
+
"labels": {
|
|
8
|
+
"app": "web",
|
|
9
|
+
"tier": "frontend",
|
|
10
|
+
"environment": "production"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"spec": {
|
|
14
|
+
"replicas": 3,
|
|
15
|
+
"selector": {
|
|
16
|
+
"matchLabels": {
|
|
17
|
+
"app": "web",
|
|
18
|
+
"tier": "frontend"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"template": {
|
|
22
|
+
"metadata": {
|
|
23
|
+
"labels": {
|
|
24
|
+
"app": "web",
|
|
25
|
+
"tier": "frontend",
|
|
26
|
+
"version": "1.2.3"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"spec": {
|
|
30
|
+
"containers": [
|
|
31
|
+
{
|
|
32
|
+
"name": "nginx",
|
|
33
|
+
"image": "nginx:1.21",
|
|
34
|
+
"ports": [
|
|
35
|
+
{
|
|
36
|
+
"containerPort": 80,
|
|
37
|
+
"protocol": "TCP"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"containerPort": 443,
|
|
41
|
+
"protocol": "TCP"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"resources": {
|
|
45
|
+
"requests": {
|
|
46
|
+
"cpu": "100m",
|
|
47
|
+
"memory": "128Mi"
|
|
48
|
+
},
|
|
49
|
+
"limits": {
|
|
50
|
+
"cpu": "500m",
|
|
51
|
+
"memory": "512Mi"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"env": [
|
|
55
|
+
{
|
|
56
|
+
"name": "NODE_ENV",
|
|
57
|
+
"value": "production"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "LOG_LEVEL",
|
|
61
|
+
"value": "info"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "MAX_CONNECTIONS",
|
|
65
|
+
"value": "1000"
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "sidecar",
|
|
71
|
+
"image": "envoy:1.20",
|
|
72
|
+
"ports": [
|
|
73
|
+
{
|
|
74
|
+
"containerPort": 8080,
|
|
75
|
+
"protocol": "TCP"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"resources": {
|
|
79
|
+
"requests": {
|
|
80
|
+
"cpu": "50m",
|
|
81
|
+
"memory": "64Mi"
|
|
82
|
+
},
|
|
83
|
+
"limits": {
|
|
84
|
+
"cpu": "200m",
|
|
85
|
+
"memory": "256Mi"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
package/samples/logs.jot
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{logs:{{:ts,level,service,msg;"2024-01-15T10:00:01Z",info,api,Server started on port 3000;"2024-01-15T10:00:02Z",info,db,Connected to database;"2024-01-15T10:00:05Z",debug,auth,Loading JWT keys;"2024-01-15T10:00:10Z",info,api,Health check endpoint ready;:ts,level,service,msg,method,path;"2024-01-15T10:01:23Z",info,api,Request received,GET,/users;:ts,level,service,msg,duration_ms;"2024-01-15T10:01:24Z",debug,db,Query executed,45;:ts,level,service,msg,status;"2024-01-15T10:01:24Z",info,api,Response sent,200;:ts,level,service,msg,ip;"2024-01-15T10:02:15Z",warn,auth,Invalid token attempt,192.168.1.100;:ts,level,service,msg,method,path;"2024-01-15T10:02:45Z",info,api,Request received,POST,/login;:ts,level,service,msg,user_id;"2024-01-15T10:02:46Z",info,auth,User authenticated,42;:ts,level,service,msg,status;"2024-01-15T10:02:46Z",info,api,Response sent,200;:ts,level,service,msg,key;"2024-01-15T10:03:00Z",info,cache,Cache hit,"user:42";:ts,level,service,msg,retry;"2024-01-15T10:03:30Z",error,db,Connection timeout,1;:ts,level,service,msg;"2024-01-15T10:03:31Z",info,db,Reconnected to database;:ts,level,service,msg,method,path;"2024-01-15T10:04:00Z",info,api,Request received,PUT,/users/42;:ts,level,service,msg,duration_ms;"2024-01-15T10:04:01Z",debug,db,Query executed,12;:ts,level,service,msg,status;"2024-01-15T10:04:01Z",info,api,Response sent,200;:ts,level,service,msg;"2024-01-15T10:05:00Z",info,scheduler,Running cleanup job;:ts,level,service,msg,count;"2024-01-15T10:05:02Z",info,cache,Expired keys removed,156;:ts,level,service,msg,method,path;"2024-01-15T10:05:10Z",info,api,Request received,DELETE,/sessions/old;:ts,level,service,msg,count;"2024-01-15T10:05:11Z",info,db,Rows deleted,23;:ts,level,service,msg,status;"2024-01-15T10:05:11Z",info,api,Response sent,204;:ts,level,service,msg,client;"2024-01-15T10:06:00Z",warn,api,Rate limit approaching,app-xyz;:ts,level,service,msg,method,path;"2024-01-15T10:06:30Z",info,api,Request received,GET,/products;:ts,level,service,msg,key;"2024-01-15T10:06:31Z",debug,cache,Cache miss,"products:all";:ts,level,service,msg,duration_ms;"2024-01-15T10:06:32Z",debug,db,Query executed,89;:ts,level,service,msg,key,ttl;"2024-01-15T10:06:32Z",info,cache,Cache set,"products:all",300;:ts,level,service,msg,status;"2024-01-15T10:06:32Z",info,api,Response sent,200;:ts,level,service,msg,endpoint;"2024-01-15T10:07:00Z",info,metrics,Metrics exported,/metrics;:ts,level,service,msg,error;"2024-01-15T10:07:45Z",error,api,Unhandled exception,"TypeError: Cannot read property 'id' of undefined";:ts,level,service,msg,status;"2024-01-15T10:07:45Z",info,api,Response sent,500;:ts,level,service,msg,method,path;"2024-01-15T10:08:00Z",info,api,Request received,GET,/health;:ts,level,service,msg,status;"2024-01-15T10:08:00Z",info,api,Response sent,200;:ts,level,service,msg,user_id;"2024-01-15T10:09:00Z",info,auth,Token refreshed,42;:ts,level,service,msg;"2024-01-15T10:10:00Z",info,scheduler,Sending daily digest;:ts,level,service,msg,count;"2024-01-15T10:10:05Z",info,email,Email queued,127;:ts,level,service,msg,duration_ms,query;"2024-01-15T10:11:00Z",warn,db,Slow query detected,1250,SELECT * FROM orders WHERE...;:ts,level,service,msg,method,path;"2024-01-15T10:12:00Z",info,api,Request received,POST,/orders;:ts,level,service,msg;"2024-01-15T10:12:01Z",info,db,Transaction started;"2024-01-15T10:12:02Z",info,db,Transaction committed;:ts,level,service,msg,status;"2024-01-15T10:12:02Z",info,api,Response sent,201;:ts,level,service,msg,event;"2024-01-15T10:13:00Z",info,webhook,Webhook triggered,order.created;:ts,level,service,msg,status;"2024-01-15T10:13:01Z",info,webhook,Webhook delivered,200;:ts,level,service,msg,client;"2024-01-15T10:14:00Z",debug,api,Request timeout,mobile-app;:ts,level,service,msg,method,path;"2024-01-15T10:15:00Z",info,api,Request received,GET,/orders/123;:ts,level,service,msg,status;"2024-01-15T10:15:01Z",info,api,Response sent,200;:ts,level,service,msg,used_mb,max_mb;"2024-01-15T10:16:00Z",info,cache,Memory usage,245,512;:ts,level,service,msg,path;"2024-01-15T10:17:00Z",warn,api,Deprecated endpoint called,/v1/legacy;:ts,level,service,msg,method,path;"2024-01-15T10:18:00Z",info,api,Request received,PATCH,/users/42/settings}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"logs":[{"ts":"2024-01-15T10:00:01Z","level":"info","service":"api","msg":"Server started on port 3000"},{"ts":"2024-01-15T10:00:02Z","level":"info","service":"db","msg":"Connected to database"},{"ts":"2024-01-15T10:00:05Z","level":"debug","service":"auth","msg":"Loading JWT keys"},{"ts":"2024-01-15T10:00:10Z","level":"info","service":"api","msg":"Health check endpoint ready"},{"ts":"2024-01-15T10:01:23Z","level":"info","service":"api","msg":"Request received","method":"GET","path":"/users"},{"ts":"2024-01-15T10:01:24Z","level":"debug","service":"db","msg":"Query executed","duration_ms":45},{"ts":"2024-01-15T10:01:24Z","level":"info","service":"api","msg":"Response sent","status":200},{"ts":"2024-01-15T10:02:15Z","level":"warn","service":"auth","msg":"Invalid token attempt","ip":"192.168.1.100"},{"ts":"2024-01-15T10:02:45Z","level":"info","service":"api","msg":"Request received","method":"POST","path":"/login"},{"ts":"2024-01-15T10:02:46Z","level":"info","service":"auth","msg":"User authenticated","user_id":42},{"ts":"2024-01-15T10:02:46Z","level":"info","service":"api","msg":"Response sent","status":200},{"ts":"2024-01-15T10:03:00Z","level":"info","service":"cache","msg":"Cache hit","key":"user:42"},{"ts":"2024-01-15T10:03:30Z","level":"error","service":"db","msg":"Connection timeout","retry":1},{"ts":"2024-01-15T10:03:31Z","level":"info","service":"db","msg":"Reconnected to database"},{"ts":"2024-01-15T10:04:00Z","level":"info","service":"api","msg":"Request received","method":"PUT","path":"/users/42"},{"ts":"2024-01-15T10:04:01Z","level":"debug","service":"db","msg":"Query executed","duration_ms":12},{"ts":"2024-01-15T10:04:01Z","level":"info","service":"api","msg":"Response sent","status":200},{"ts":"2024-01-15T10:05:00Z","level":"info","service":"scheduler","msg":"Running cleanup job"},{"ts":"2024-01-15T10:05:02Z","level":"info","service":"cache","msg":"Expired keys removed","count":156},{"ts":"2024-01-15T10:05:10Z","level":"info","service":"api","msg":"Request received","method":"DELETE","path":"/sessions/old"},{"ts":"2024-01-15T10:05:11Z","level":"info","service":"db","msg":"Rows deleted","count":23},{"ts":"2024-01-15T10:05:11Z","level":"info","service":"api","msg":"Response sent","status":204},{"ts":"2024-01-15T10:06:00Z","level":"warn","service":"api","msg":"Rate limit approaching","client":"app-xyz"},{"ts":"2024-01-15T10:06:30Z","level":"info","service":"api","msg":"Request received","method":"GET","path":"/products"},{"ts":"2024-01-15T10:06:31Z","level":"debug","service":"cache","msg":"Cache miss","key":"products:all"},{"ts":"2024-01-15T10:06:32Z","level":"debug","service":"db","msg":"Query executed","duration_ms":89},{"ts":"2024-01-15T10:06:32Z","level":"info","service":"cache","msg":"Cache set","key":"products:all","ttl":300},{"ts":"2024-01-15T10:06:32Z","level":"info","service":"api","msg":"Response sent","status":200},{"ts":"2024-01-15T10:07:00Z","level":"info","service":"metrics","msg":"Metrics exported","endpoint":"/metrics"},{"ts":"2024-01-15T10:07:45Z","level":"error","service":"api","msg":"Unhandled exception","error":"TypeError: Cannot read property 'id' of undefined"},{"ts":"2024-01-15T10:07:45Z","level":"info","service":"api","msg":"Response sent","status":500},{"ts":"2024-01-15T10:08:00Z","level":"info","service":"api","msg":"Request received","method":"GET","path":"/health"},{"ts":"2024-01-15T10:08:00Z","level":"info","service":"api","msg":"Response sent","status":200},{"ts":"2024-01-15T10:09:00Z","level":"info","service":"auth","msg":"Token refreshed","user_id":42},{"ts":"2024-01-15T10:10:00Z","level":"info","service":"scheduler","msg":"Sending daily digest"},{"ts":"2024-01-15T10:10:05Z","level":"info","service":"email","msg":"Email queued","count":127},{"ts":"2024-01-15T10:11:00Z","level":"warn","service":"db","msg":"Slow query detected","duration_ms":1250,"query":"SELECT * FROM orders WHERE..."},{"ts":"2024-01-15T10:12:00Z","level":"info","service":"api","msg":"Request received","method":"POST","path":"/orders"},{"ts":"2024-01-15T10:12:01Z","level":"info","service":"db","msg":"Transaction started"},{"ts":"2024-01-15T10:12:02Z","level":"info","service":"db","msg":"Transaction committed"},{"ts":"2024-01-15T10:12:02Z","level":"info","service":"api","msg":"Response sent","status":201},{"ts":"2024-01-15T10:13:00Z","level":"info","service":"webhook","msg":"Webhook triggered","event":"order.created"},{"ts":"2024-01-15T10:13:01Z","level":"info","service":"webhook","msg":"Webhook delivered","status":200},{"ts":"2024-01-15T10:14:00Z","level":"debug","service":"api","msg":"Request timeout","client":"mobile-app"},{"ts":"2024-01-15T10:15:00Z","level":"info","service":"api","msg":"Request received","method":"GET","path":"/orders/123"},{"ts":"2024-01-15T10:15:01Z","level":"info","service":"api","msg":"Response sent","status":200},{"ts":"2024-01-15T10:16:00Z","level":"info","service":"cache","msg":"Memory usage","used_mb":245,"max_mb":512},{"ts":"2024-01-15T10:17:00Z","level":"warn","service":"api","msg":"Deprecated endpoint called","path":"/v1/legacy"},{"ts":"2024-01-15T10:18:00Z","level":"info","service":"api","msg":"Request received","method":"PATCH","path":"/users/42/settings"}]}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
{ logs: {{
|
|
2
|
+
:ts, level, service, msg
|
|
3
|
+
"2024-01-15T10:00:01Z", info, api, Server started on port 3000
|
|
4
|
+
"2024-01-15T10:00:02Z", info, db, Connected to database
|
|
5
|
+
"2024-01-15T10:00:05Z", debug, auth, Loading JWT keys
|
|
6
|
+
"2024-01-15T10:00:10Z", info, api, Health check endpoint ready
|
|
7
|
+
:ts, level, service, msg, method, path
|
|
8
|
+
"2024-01-15T10:01:23Z", info, api, Request received, GET, /users
|
|
9
|
+
:ts, level, service, msg, duration_ms
|
|
10
|
+
"2024-01-15T10:01:24Z", debug, db, Query executed, 45
|
|
11
|
+
:ts, level, service, msg, status
|
|
12
|
+
"2024-01-15T10:01:24Z", info, api, Response sent, 200
|
|
13
|
+
:ts, level, service, msg, ip
|
|
14
|
+
"2024-01-15T10:02:15Z", warn, auth, Invalid token attempt, 192.168.1.100
|
|
15
|
+
:ts, level, service, msg, method, path
|
|
16
|
+
"2024-01-15T10:02:45Z", info, api, Request received, POST, /login
|
|
17
|
+
:ts, level, service, msg, user_id
|
|
18
|
+
"2024-01-15T10:02:46Z", info, auth, User authenticated, 42
|
|
19
|
+
:ts, level, service, msg, status
|
|
20
|
+
"2024-01-15T10:02:46Z", info, api, Response sent, 200
|
|
21
|
+
:ts, level, service, msg, key
|
|
22
|
+
"2024-01-15T10:03:00Z", info, cache, Cache hit, "user:42"
|
|
23
|
+
:ts, level, service, msg, retry
|
|
24
|
+
"2024-01-15T10:03:30Z", error, db, Connection timeout, 1
|
|
25
|
+
:ts, level, service, msg
|
|
26
|
+
"2024-01-15T10:03:31Z", info, db, Reconnected to database
|
|
27
|
+
:ts, level, service, msg, method, path
|
|
28
|
+
"2024-01-15T10:04:00Z", info, api, Request received, PUT, /users/42
|
|
29
|
+
:ts, level, service, msg, duration_ms
|
|
30
|
+
"2024-01-15T10:04:01Z", debug, db, Query executed, 12
|
|
31
|
+
:ts, level, service, msg, status
|
|
32
|
+
"2024-01-15T10:04:01Z", info, api, Response sent, 200
|
|
33
|
+
:ts, level, service, msg
|
|
34
|
+
"2024-01-15T10:05:00Z", info, scheduler, Running cleanup job
|
|
35
|
+
:ts, level, service, msg, count
|
|
36
|
+
"2024-01-15T10:05:02Z", info, cache, Expired keys removed, 156
|
|
37
|
+
:ts, level, service, msg, method, path
|
|
38
|
+
"2024-01-15T10:05:10Z", info, api, Request received, DELETE, /sessions/old
|
|
39
|
+
:ts, level, service, msg, count
|
|
40
|
+
"2024-01-15T10:05:11Z", info, db, Rows deleted, 23
|
|
41
|
+
:ts, level, service, msg, status
|
|
42
|
+
"2024-01-15T10:05:11Z", info, api, Response sent, 204
|
|
43
|
+
:ts, level, service, msg, client
|
|
44
|
+
"2024-01-15T10:06:00Z", warn, api, Rate limit approaching, app-xyz
|
|
45
|
+
:ts, level, service, msg, method, path
|
|
46
|
+
"2024-01-15T10:06:30Z", info, api, Request received, GET, /products
|
|
47
|
+
:ts, level, service, msg, key
|
|
48
|
+
"2024-01-15T10:06:31Z", debug, cache, Cache miss, "products:all"
|
|
49
|
+
:ts, level, service, msg, duration_ms
|
|
50
|
+
"2024-01-15T10:06:32Z", debug, db, Query executed, 89
|
|
51
|
+
:ts, level, service, msg, key, ttl
|
|
52
|
+
"2024-01-15T10:06:32Z", info, cache, Cache set, "products:all", 300
|
|
53
|
+
:ts, level, service, msg, status
|
|
54
|
+
"2024-01-15T10:06:32Z", info, api, Response sent, 200
|
|
55
|
+
:ts, level, service, msg, endpoint
|
|
56
|
+
"2024-01-15T10:07:00Z", info, metrics, Metrics exported, /metrics
|
|
57
|
+
:ts, level, service, msg, error
|
|
58
|
+
"2024-01-15T10:07:45Z", error, api, Unhandled exception, "TypeError: Cannot read property 'id' of undefined"
|
|
59
|
+
:ts, level, service, msg, status
|
|
60
|
+
"2024-01-15T10:07:45Z", info, api, Response sent, 500
|
|
61
|
+
:ts, level, service, msg, method, path
|
|
62
|
+
"2024-01-15T10:08:00Z", info, api, Request received, GET, /health
|
|
63
|
+
:ts, level, service, msg, status
|
|
64
|
+
"2024-01-15T10:08:00Z", info, api, Response sent, 200
|
|
65
|
+
:ts, level, service, msg, user_id
|
|
66
|
+
"2024-01-15T10:09:00Z", info, auth, Token refreshed, 42
|
|
67
|
+
:ts, level, service, msg
|
|
68
|
+
"2024-01-15T10:10:00Z", info, scheduler, Sending daily digest
|
|
69
|
+
:ts, level, service, msg, count
|
|
70
|
+
"2024-01-15T10:10:05Z", info, email, Email queued, 127
|
|
71
|
+
:ts, level, service, msg, duration_ms, query
|
|
72
|
+
"2024-01-15T10:11:00Z", warn, db, Slow query detected, 1250, SELECT * FROM orders WHERE...
|
|
73
|
+
:ts, level, service, msg, method, path
|
|
74
|
+
"2024-01-15T10:12:00Z", info, api, Request received, POST, /orders
|
|
75
|
+
:ts, level, service, msg
|
|
76
|
+
"2024-01-15T10:12:01Z", info, db, Transaction started
|
|
77
|
+
"2024-01-15T10:12:02Z", info, db, Transaction committed
|
|
78
|
+
:ts, level, service, msg, status
|
|
79
|
+
"2024-01-15T10:12:02Z", info, api, Response sent, 201
|
|
80
|
+
:ts, level, service, msg, event
|
|
81
|
+
"2024-01-15T10:13:00Z", info, webhook, Webhook triggered, order.created
|
|
82
|
+
:ts, level, service, msg, status
|
|
83
|
+
"2024-01-15T10:13:01Z", info, webhook, Webhook delivered, 200
|
|
84
|
+
:ts, level, service, msg, client
|
|
85
|
+
"2024-01-15T10:14:00Z", debug, api, Request timeout, mobile-app
|
|
86
|
+
:ts, level, service, msg, method, path
|
|
87
|
+
"2024-01-15T10:15:00Z", info, api, Request received, GET, /orders/123
|
|
88
|
+
:ts, level, service, msg, status
|
|
89
|
+
"2024-01-15T10:15:01Z", info, api, Response sent, 200
|
|
90
|
+
:ts, level, service, msg, used_mb, max_mb
|
|
91
|
+
"2024-01-15T10:16:00Z", info, cache, Memory usage, 245, 512
|
|
92
|
+
:ts, level, service, msg, path
|
|
93
|
+
"2024-01-15T10:17:00Z", warn, api, Deprecated endpoint called, /v1/legacy
|
|
94
|
+
:ts, level, service, msg, method, path
|
|
95
|
+
"2024-01-15T10:18:00Z", info, api, Request received, PATCH, /users/42/settings
|
|
96
|
+
}} }
|