THUgewu commited on
Commit
da79f44
·
verified ·
1 Parent(s): 8bbadcd

Add TsFile (converted from Snaseem2026/devops-predictive-logs)

Browse files
README.md ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - time-series-forecasting
5
+ - text-classification
6
+ tags:
7
+ - tsfile
8
+ - timeseries
9
+ - time-series
10
+ - devops
11
+ - logs
12
+ - incident-prediction
13
+ - sre
14
+ - monitoring
15
+ - format:tsfile
16
+ pretty_name: DevOps Predictive Logs Dataset
17
+ configs:
18
+ - config_name: default
19
+ data_files:
20
+ - split: train
21
+ path: devops_predictive_logs_train.tsfile
22
+ - split: test
23
+ path: devops_predictive_logs_test.tsfile
24
+ ---
25
+
26
+ # DevOps Predictive Logs Dataset (TsFile)
27
+
28
+ Apache TsFile version of [`Snaseem2026/devops-predictive-logs`](https://huggingface.co/datasets/Snaseem2026/devops-predictive-logs).
29
+
30
+ ## Overview
31
+
32
+ A synthetic dataset of realistic DevOps log sequences for training and
33
+ benchmarking predictive failure models. Each log entry describes one
34
+ infrastructure observation (service, pod, level, message) inside one of 10
35
+ failure scenarios together with its incident metadata: severity, whether the
36
+ pod eventually fails, and the time-to-failure in minutes.
37
+
38
+ - **Rows:** 107 logs total — official train split 86 rows, test split 21 rows.
39
+ - **Scenarios:** 10 unique failure scenarios across 12 services / 13 pods.
40
+ - The repo additionally ships `devops_logs_dataset.parquet`, which is exactly
41
+ the concatenation of the train and test splits (verified row-for-row), so
42
+ only the two official splits are converted here.
43
+
44
+ ## Schema (TsFile structure)
45
+
46
+ Both splits share one schema; each split is its own `.tsfile`.
47
+
48
+ - **Time** (INT64, milliseconds) — log timestamp (`%Y-%m-%d %H:%M:%S`, naive).
49
+ - **pod** (TAG, STRING) — the pod emitting the log stream.
50
+ - **level, service, message, scenario, issue_type, severity,
51
+ dataset_version, created_date** (FIELD, STRING)
52
+ - **will_fail** (FIELD, BOOLEAN)
53
+ - **time_to_failure_minutes** (FIELD, DOUBLE)
54
+
55
+ ## Usage
56
+
57
+ Install the Apache TsFile Python SDK (`pip install tsfile`) and read a converted file:
58
+
59
+ ```python
60
+ from pathlib import Path
61
+ from tsfile import TsFileReader
62
+
63
+ path = Path("devops_predictive_logs_test.tsfile")
64
+ with TsFileReader(str(path)) as reader:
65
+ schemas = reader.get_all_table_schemas()
66
+ print("tables:", list(schemas))
67
+ table_name = next(iter(schemas))
68
+ table = schemas[table_name]
69
+ columns = [column.get_column_name() for column in table.get_columns()]
70
+ print("columns:", columns)
71
+ field_names = [
72
+ column.get_column_name()
73
+ for column in table.get_columns()
74
+ if column.get_column_name() not in {"Time", "time"}
75
+ ]
76
+ if field_names:
77
+ with reader.query_table(table_name, field_names[:3], batch_size=1024) as result:
78
+ batch = result.read_arrow_batch()
79
+ if batch is not None:
80
+ print(batch.to_pandas().head())
81
+ ```
82
+
83
+ ## Source & license
84
+
85
+ - Original dataset: <https://huggingface.co/datasets/Snaseem2026/devops-predictive-logs>
86
+ - License: MIT
devops_predictive_logs_test.tsfile ADDED
Binary file (4.07 kB). View file
 
devops_predictive_logs_train.tsfile ADDED
Binary file (22.9 kB). View file