Skip to content

Commit

Permalink
Add process.working_directory and process.start. (elastic#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
webmat authored and MikePaquette committed Dec 4, 2018
1 parent 468e8a4 commit 80fa71a
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ All notable changes to this project will be documented in this file based on the
* Create new `group` field set with `group.id` and `group.name`. #203
* Add `url.full` field. #207
* Add `process.executable` field. #209
* Add `process.working_directory` and `process.start`. #215

### Improvements
* Improve and clarify the definition of Device fields #192
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,8 @@ These fields contain information about a process. These fields can help you corr
| <a name="process.executable"></a>process.executable | Absolute path to the process executable. | extended | keyword | `/usr/bin/ssh` |
| <a name="process.title"></a>process.title | Process title.<br/>The proctitle, some times the same as process name. Can also be different: for example a browser setting its title to the web page currently opened. | extended | keyword | |
| <a name="process.thread.id"></a>process.thread.id | Thread ID. | extended | long | `4242` |
| <a name="process.start"></a>process.start | The time the process started. | extended | date | `2016-05-23T08:05:34.853Z` |
| <a name="process.working_directory"></a>process.working_directory | The working directory of the process. | extended | keyword | `/home/alice` |


## <a name="related"></a> Related fields
Expand Down
14 changes: 14 additions & 0 deletions fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1038,6 +1038,20 @@
description: >
Thread ID.
- name: start
level: extended
type: date
example: "2016-05-23T08:05:34.853Z"
description: >
The time the process started.
- name: working_directory
level: extended
type: keyword
example: /home/alice
description: >
The working directory of the process.
- name: related
title: Related
group: 2
Expand Down
2 changes: 2 additions & 0 deletions schema.csv
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@ process.executable,keyword,extended,/usr/bin/ssh
process.name,keyword,extended,ssh
process.pid,long,core,
process.ppid,long,extended,
process.start,date,extended,2016-05-23T08:05:34.853Z
process.thread.id,long,extended,4242
process.title,keyword,extended,
process.working_directory,keyword,extended,/home/alice
related.ip,ip,extended,
service.ephemeral_id,keyword,extended,8a4f500f
service.id,keyword,core,d37e5ebfe0ae6c4972dbe9f0174a1637bb8247f6
Expand Down
14 changes: 14 additions & 0 deletions schemas/process.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,17 @@
example: 4242
description: >
Thread ID.
- name: start
level: extended
type: date
example: "2016-05-23T08:05:34.853Z"
description: >
The time the process started.
- name: working_directory
level: extended
type: keyword
example: /home/alice
description: >
The working directory of the process.
7 changes: 7 additions & 0 deletions template.json
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,9 @@
"ppid": {
"type": "long"
},
"start": {
"type": "date"
},
"thread": {
"properties": {
"id": {
Expand All @@ -529,6 +532,10 @@
"title": {
"ignore_above": 1024,
"type": "keyword"
},
"working_directory": {
"ignore_above": 1024,
"type": "keyword"
}
}
},
Expand Down

0 comments on commit 80fa71a

Please sign in to comment.