Skip to content

Commit

Permalink
Add process.working_directory and process.start.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Martin committed Dec 4, 2018
1 parent 3d1e7a7 commit c557b0f
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,8 @@ These fields contain information about a process. These fields can help you corr
| <a name="process.ppid"></a>process.ppid | Process parent id. | extended | long | |
| <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 @@ -1032,6 +1032,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 @@ -106,8 +106,10 @@ process.args,keyword,extended,"['-l', 'user', '10.0.0.16']"
process.name,keyword,extended,ssh
process.pid,long,core,4242
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 @@ -56,3 +56,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 @@ -515,6 +515,9 @@
"ppid": {
"type": "long"
},
"start": {
"type": "date"
},
"thread": {
"properties": {
"id": {
Expand All @@ -525,6 +528,10 @@
"title": {
"ignore_above": 1024,
"type": "keyword"
},
"working_directory": {
"ignore_above": 1024,
"type": "keyword"
}
}
},
Expand Down

0 comments on commit c557b0f

Please sign in to comment.