Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add process.working_directory and process.start. #215

Merged
merged 2 commits into from
Dec 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

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 @@ -1039,6 +1039,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