itsrishub commited on
Commit
7dbbd72
·
verified ·
1 Parent(s): 7cd980c

Update dataset card (100,000 rows)

Browse files
Files changed (1) hide show
  1. README.md +49 -0
README.md ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - text-generation
5
+ tags:
6
+ - synthetic
7
+ - logs
8
+ - log-parsing
9
+ ---
10
+
11
+ # Synthetic Logs (Wild)
12
+
13
+ Just messy, realistic-looking logs paired with their parsed version. Each row has a raw log line and what you'd want a parser to pull out of it.
14
+
15
+ - 100,000 rows total, split across 3 files in `data/`:
16
+ - `data/logs-0001.parquet`
17
+ - `data/logs-0002.parquet`
18
+ - `data/logs-0003.parquet`
19
+ - 2 columns: `raw_log` (the messy string) and `parsed_json` (the answer, as JSON string)
20
+ - Covers 130+ services — nginx, postgres, k8s, lambda, python tracebacks, etc. — in 16 formats like syslog, JSON, CEF, XML, CSV, etc.
21
+ - Values are kept as-is from the raw log (all strings, no type guessing). Only `severity` is normalized to DEBUG / INFO / WARNING / ERROR / CRITICAL.
22
+ - Sometimes fields are just missing, like in real logs. If it's not in `raw_log`, it's not in `parsed_json` either — so don't impute.
23
+
24
+ ## Usage
25
+
26
+ Load all 3 files at once:
27
+
28
+ ```python
29
+ import pandas as pd
30
+ df = pd.read_parquet("data/")
31
+ ```
32
+
33
+ Or from Hugging Face:
34
+
35
+ ```python
36
+ from datasets import load_dataset
37
+ ds = load_dataset("itsrishub/synthetic-logs")
38
+ df = ds["train"].to_pandas()
39
+ ```
40
+
41
+ Quick peek:
42
+
43
+ ```python
44
+ import json
45
+ print(df.iloc[0]["raw_log"])
46
+ print(json.loads(df.iloc[0]["parsed_json"]))
47
+ ```
48
+
49
+ Made with `synthetic.py` (seed=42).