# Application User Profile: Security Logs

A profile security view showing recent sign ins, devices, locations, and times. Use it so members can spot odd activity and protect their account.

- Page: https://www.shadcn-ui-blocks.com/blocks/application/user-profiles/security-logs
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application), Free tier
- Group: [User Profiles](https://www.shadcn-ui-blocks.com/blocks/application/user-profiles)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application/user-profiles/security-logs.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-user-profiles-security-logs
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/application-user-profiles-security-logs.json"`.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: badge, button, card, select
- Installs to: `@/components/blocks/application/user-profiles/security-logs`

## About this block

Security Logs is a full account audit view. A page heading titled "Security
& Audit Logs" sits above two cards. The first card, Active Sessions, lists
every device currently signed in, each row showing a device icon, device
name, location, last active time, and a "Current Device" badge on the
session the user is browsing from. Rows for other devices carry a red Sign
Out button. The second card, Activity Log, is a chronological feed of
events: each entry shows a severity-colored icon, an event name, a detail
line, a relative timestamp, and the originating IP address. A select at the
top of the feed lets the reader narrow by category. Filter and Export
buttons appear in the page header for bulk actions.

The copy in both sections is independent. You can swap device names,
locations, and event descriptions freely, and you can add or remove entries
from either list. The four activity categories in the select (login,
security events, and access changes) reflect the event types in the demo
data and can be adjusted to match whatever your app logs.

## When to use

Reach for this block on the security settings route of any platform where
account safety is a first-class concern. On an HR and hiring platform,
recruiters and hiring managers often share access to candidate pipelines, so
a clear audit trail lets account owners confirm no unauthorized party
reviewed or exported sensitive data. It fits naturally as a dedicated page
rather than a tab, because the two cards together fill the viewport and give
each section enough breathing room to scan quickly.

A natural flow around it on an Application page:

**Before**

- [Tabbed](https://www.shadcn-ui-blocks.com/blocks/application/user-profiles/tabbed) to give the user a
  navigation shell so Security Logs is one tab among account, notifications,
  and other settings
- [Page Headings](https://www.shadcn-ui-blocks.com/blocks/application/page-headings) to introduce the
  settings area before the user drills into a specific route

**After**

- [Permissions](https://www.shadcn-ui-blocks.com/blocks/application/user-profiles/permissions) so admins
  can review what access a team member holds right after reviewing their
  recent activity
- [Form Layouts](https://www.shadcn-ui-blocks.com/blocks/application/form-layouts) for a password change or
  two-factor setup form placed below the audit view

## What you can customize

Each section of the block is self-contained, so you can tailor what appears
without touching the other card:

- **Active sessions list.** Add or remove session rows to reflect real
  device data from your auth provider; the current-device badge and Sign Out
  button are controlled per row.
- **Activity feed entries.** Replace the four demo events with your own log
  stream; the severity coloring maps to four states (info, success, warning,
  destructive) so events are visually ranked at a glance.
- **Filter select options.** Update the category values to match the event
  types your backend actually emits, keeping the dropdown meaningful to your
  users.

> Tip: surface failed login attempts at the top of the activity feed so
> users see the most urgent events without scrolling.

## More in Application User Profiles

- [Billing](https://www.shadcn-ui-blocks.com/blocks/application/user-profiles/billing)
- [Compact List](https://www.shadcn-ui-blocks.com/blocks/application/user-profiles/compact-list)
- [Developer](https://www.shadcn-ui-blocks.com/blocks/application/user-profiles/developer)
- [Onboarding](https://www.shadcn-ui-blocks.com/blocks/application/user-profiles/onboarding)
- [Permissions](https://www.shadcn-ui-blocks.com/blocks/application/user-profiles/permissions)
- [Simple](https://www.shadcn-ui-blocks.com/blocks/application/user-profiles/simple)
- [Tabbed](https://www.shadcn-ui-blocks.com/blocks/application/user-profiles/tabbed)
- [Team Grid](https://www.shadcn-ui-blocks.com/blocks/application/user-profiles/team-grid)
- [With Stats](https://www.shadcn-ui-blocks.com/blocks/application/user-profiles/with-stats)
