daily pastebin goal
22%
SHARE
TWEET

Untitled

a guest May 30th, 2014 223 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Failing logline:
  2. May 30 08:37:29 tv3 sshd[31894]: Accepted publickey for magnus from 10.0.1.164 port 51858 ssh2
  3.  
  4. Result:
  5. {
  6.   "_index": "logstash-2014.05.30",
  7.   "_type": "auth_log",
  8.   "_id": "4omQzJTbRcCwFnrYqcWzMg",
  9.   "_score": null,
  10.   "_source": {
  11.     "message": "May 30 08:37:29 tv3 sshd[31894]: Accepted publickey for magnus from 10.0.1.164 port 51858 ssh2",
  12.     "@version": "1",
  13.     "@timestamp": "2014-05-30T06:37:29.000Z",
  14.     "type": "auth_log",
  15.     "host": "tv3.local",
  16.     "path": "/var/log/auth.log",
  17.     "timestamp": "May 30 08:37:29",
  18.     "logsource": "tv3",
  19.     "program": "sshd",
  20.     "pid": "31894",
  21.     "username": "magnus",
  22.     "src_ip": "10.0.1.164",
  23.     "syslog_raw": "May 30 08:37:29 tv3 sshd[31894]: Accepted publickey for magnus from 10.0.1.164 port 51858 ssh2",
  24.     "received_at": "2014-05-30 06:41:03 UTC"
  25.   },
  26.   "sort": [
  27.     1401431849000,
  28.     1401431849000
  29.   ]
  30. }
  31.  
  32. Working log line:
  33. May 30 08:37:23 tv3 sshd[31756]: Received disconnect from 10.0.1.164: 11: disconnected by user
  34.  
  35. Result:
  36. {
  37.   "_index": "logstash-2014.05.30",
  38.   "_type": "auth_log",
  39.   "_id": "gQuwrJdaTJKHQif2qwpxTQ",
  40.   "_score": null,
  41.   "_source": {
  42.     "message": "Received disconnect from 10.0.1.164: 11: disconnected by user",
  43.     "@version": "1",
  44.     "@timestamp": "2014-05-30T06:37:23.000Z",
  45.     "type": "auth_log",
  46.     "host": "tv3.local",
  47.     "path": "/var/log/auth.log",
  48.     "timestamp": "May 30 08:37:23",
  49.     "logsource": "tv3",
  50.     "program": "sshd",
  51.     "pid": "31756",
  52.     "syslog_raw": "Received disconnect from 10.0.1.164: 11: disconnected by user",
  53.     "received_at": "2014-05-30 06:37:24 UTC"
  54.   },
  55.   "sort": [
  56.     1401431843000,
  57.     1401431843000
  58.   ]
  59. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top