| 1 |
/* |
| 2 |
* Copyright (C) 2017 Red Hat, Inc. |
| 3 |
* SPDX-License-Identifier: LGPL-2.1-or-later |
| 4 |
*/ |
| 5 |
|
| 6 |
import cockpit from "cockpit"; |
| 7 |
import React from "react"; |
| 8 |
|
| 9 |
import { LogsPanel } from "cockpit-components-logs-panel.jsx"; |
| 10 |
|
| 11 |
const _ = cockpit.gettext; |
| 12 |
|
| 13 |
export function StorageLogsPanel() { |
| 14 |
const match = [ |
| 15 |
"_SYSTEMD_UNIT=storaged.service", "+", |
| 16 |
"_SYSTEMD_UNIT=udisks2.service", "+", |
| 17 |
"_SYSTEMD_UNIT=dm-event.service", "+", |
| 18 |
"_SYSTEMD_UNIT=smartd.service", "+", |
| 19 |
"_SYSTEMD_UNIT=multipathd.service" |
| 20 |
]; |
| 21 |
const search_options = { prio: "debug", _SYSTEMD_UNIT: "storaged.service,udisks2.service,dm-event.service,smartd.service,multipathd.service" }; |
| 22 |
const url = "/system/logs/#/?prio=debug&_SYSTEMD_UNIT=storaged.service,udisks2.service,dm-event.service,smartd.service,multipathd.service"; |
| 23 |
|
| 24 |
return <LogsPanel title={_("Storage logs")} match={match} max={10} search_options={search_options} goto_url={url} className="contains-list" />; |
| 25 |
} |