|
12 | 12 | "metadata": {
|
13 | 13 | "collapsed": true,
|
14 | 14 | "ExecuteTime": {
|
15 |
| - "end_time": "2025-01-15T20:27:53.349036Z", |
16 |
| - "start_time": "2025-01-15T20:27:53.317874Z" |
| 15 | + "end_time": "2025-01-18T21:42:43.965893Z", |
| 16 | + "start_time": "2025-01-18T21:42:43.144021Z" |
17 | 17 | }
|
18 | 18 | },
|
19 | 19 | "source": [
|
20 | 20 | "import pandas as pd\n",
|
21 | 21 | "\n",
|
22 |
| - "df = pd.read_csv(\"synthetic_logs.csv\")\n", |
| 22 | + "df = pd.read_csv(\"dataset/synthetic_logs.csv\")\n", |
23 | 23 | "df.head()"
|
24 | 24 | ],
|
25 | 25 | "outputs": [
|
|
33 | 33 | "3 2025-07-12 00:24:16 ModernHR \n",
|
34 | 34 | "4 2025-06-02 18:25:23 BillingSystem \n",
|
35 | 35 | "\n",
|
36 |
| - " log_message \\\n", |
37 |
| - "0 nova.osapi_compute.wsgi.server [req-b9718cd8-f65e-49cc-8349-6cf7122af137 113d3a99c3da401fbd62cc2caa5b96d2 54fadb412c4e40cdbaed9335e4c35a9e - - -] 10.11.10.1 \"GET /v2/54fadb412c4e40cdbaed9335e4c35a9e/servers/detail HTTP/1.1\" status: 200 len: 1893 time: 0.2675118 \n", |
38 |
| - "1 Email service experiencing issues with sending \n", |
39 |
| - "2 Unauthorized access to data was attempted \n", |
40 |
| - "3 nova.osapi_compute.wsgi.server [req-4895c258-b2f8-488f-a2a3-4fae63982e48 113d3a99c3da401fbd62cc2caa5b96d2 54fadb412c4e40cdbaed9335e4c35a9e - - -] 10.11.10.1 \"GET /v2/54fadb412c4e40cdbaed9335e4c35a9e/servers/detail HTTP/1.1\" HTTP status code - 200 len: 211 time: 0.0968180 \n", |
41 |
| - "4 nova.osapi_compute.wsgi.server [req-ee8bc8ba-9265-4280-9215-dbe000a41209 113d3a99c3da401fbd62cc2caa5b96d2 54fadb412c4e40cdbaed9335e4c35a9e - - -] 10.11.10.1 \"GET /v2/54fadb412c4e40cdbaed9335e4c35a9e/servers/detail HTTP/1.1\" RCODE 200 len: 1874 time: 0.2280791 \n", |
| 36 | + " log_message target_label \\\n", |
| 37 | + "0 nova.osapi_compute.wsgi.server [req-b9718cd8-f... HTTP Status \n", |
| 38 | + "1 Email service experiencing issues with sending Critical Error \n", |
| 39 | + "2 Unauthorized access to data was attempted Security Alert \n", |
| 40 | + "3 nova.osapi_compute.wsgi.server [req-4895c258-b... HTTP Status \n", |
| 41 | + "4 nova.osapi_compute.wsgi.server [req-ee8bc8ba-9... HTTP Status \n", |
42 | 42 | "\n",
|
43 |
| - " target_label complexity \n", |
44 |
| - "0 HTTP Status bert \n", |
45 |
| - "1 Critical Error bert \n", |
46 |
| - "2 Security Alert bert \n", |
47 |
| - "3 HTTP Status bert \n", |
48 |
| - "4 HTTP Status bert " |
| 43 | + " complexity \n", |
| 44 | + "0 bert \n", |
| 45 | + "1 bert \n", |
| 46 | + "2 bert \n", |
| 47 | + "3 bert \n", |
| 48 | + "4 bert " |
49 | 49 | ],
|
50 | 50 | "text/html": [
|
51 | 51 | "<div>\n",
|
|
78 | 78 | " <th>0</th>\n",
|
79 | 79 | " <td>2025-06-27 07:20:25</td>\n",
|
80 | 80 | " <td>ModernCRM</td>\n",
|
81 |
| - " <td>nova.osapi_compute.wsgi.server [req-b9718cd8-f65e-49cc-8349-6cf7122af137 113d3a99c3da401fbd62cc2caa5b96d2 54fadb412c4e40cdbaed9335e4c35a9e - - -] 10.11.10.1 \"GET /v2/54fadb412c4e40cdbaed9335e4c35a9e/servers/detail HTTP/1.1\" status: 200 len: 1893 time: 0.2675118</td>\n", |
| 81 | + " <td>nova.osapi_compute.wsgi.server [req-b9718cd8-f...</td>\n", |
82 | 82 | " <td>HTTP Status</td>\n",
|
83 | 83 | " <td>bert</td>\n",
|
84 | 84 | " </tr>\n",
|
|
102 | 102 | " <th>3</th>\n",
|
103 | 103 | " <td>2025-07-12 00:24:16</td>\n",
|
104 | 104 | " <td>ModernHR</td>\n",
|
105 |
| - " <td>nova.osapi_compute.wsgi.server [req-4895c258-b2f8-488f-a2a3-4fae63982e48 113d3a99c3da401fbd62cc2caa5b96d2 54fadb412c4e40cdbaed9335e4c35a9e - - -] 10.11.10.1 \"GET /v2/54fadb412c4e40cdbaed9335e4c35a9e/servers/detail HTTP/1.1\" HTTP status code - 200 len: 211 time: 0.0968180</td>\n", |
| 105 | + " <td>nova.osapi_compute.wsgi.server [req-4895c258-b...</td>\n", |
106 | 106 | " <td>HTTP Status</td>\n",
|
107 | 107 | " <td>bert</td>\n",
|
108 | 108 | " </tr>\n",
|
109 | 109 | " <tr>\n",
|
110 | 110 | " <th>4</th>\n",
|
111 | 111 | " <td>2025-06-02 18:25:23</td>\n",
|
112 | 112 | " <td>BillingSystem</td>\n",
|
113 |
| - " <td>nova.osapi_compute.wsgi.server [req-ee8bc8ba-9265-4280-9215-dbe000a41209 113d3a99c3da401fbd62cc2caa5b96d2 54fadb412c4e40cdbaed9335e4c35a9e - - -] 10.11.10.1 \"GET /v2/54fadb412c4e40cdbaed9335e4c35a9e/servers/detail HTTP/1.1\" RCODE 200 len: 1874 time: 0.2280791</td>\n", |
| 113 | + " <td>nova.osapi_compute.wsgi.server [req-ee8bc8ba-9...</td>\n", |
114 | 114 | " <td>HTTP Status</td>\n",
|
115 | 115 | " <td>bert</td>\n",
|
116 | 116 | " </tr>\n",
|
|
119 | 119 | "</div>"
|
120 | 120 | ]
|
121 | 121 | },
|
122 |
| - "execution_count": 269, |
| 122 | + "execution_count": 1, |
123 | 123 | "metadata": {},
|
124 | 124 | "output_type": "execute_result"
|
125 | 125 | }
|
126 | 126 | ],
|
127 |
| - "execution_count": 269 |
| 127 | + "execution_count": 1 |
128 | 128 | },
|
129 | 129 | {
|
130 | 130 | "metadata": {
|
|
2257 | 2257 | "cell_type": "code",
|
2258 | 2258 | "source": [
|
2259 | 2259 | "import joblib\n",
|
2260 |
| - "joblib.dump(clf, 'models/log_classifier.joblib')\n" |
| 2260 | + "joblib.dump(clf, '../models/log_classifier.joblib')\n" |
2261 | 2261 | ],
|
2262 | 2262 | "id": "1317f9b2de813a32",
|
2263 | 2263 | "outputs": [
|
|
0 commit comments