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

feat: lacework agent list - does not show agent status. #852

Closed
getsec opened this issue Jul 6, 2022 · 5 comments
Closed

feat: lacework agent list - does not show agent status. #852

getsec opened this issue Jul 6, 2022 · 5 comments
Assignees
Labels
feat New feature or request

Comments

@getsec
Copy link

getsec commented Jul 6, 2022

Feature Request

Describe the Feature Request
Lacework agent list CLI feature should report if the agent is ACTIVE or INACTIVE (like in the agent monitor web console view)

Is your feature request related to a problem? Please describe
When trying to programmatically get a count of lacework agents, the count is much larger than the active count within the web console.

Describe Preferred Solution
Running lacework agent list --json gives us this (example)

{
    "awsInstanceId": "i-xxxxx",
    "awsZone": "us-east-1c",
    "createdTime": "2022-07-01T13:00:20.627Z",
    "domain": "(none)",
    "hostname": "example",
    "kernel": "Linux",
    "kernelRelease": "5.4.0-1047",
    "kernelVersion": "#53-Ubuntu SMP Tue Mar 29 18:02:39 UTC 2022",
    "mid": 218518,
    "os": "Ubuntu",
    "osVersion": "18.04",
    "tags": {
      "Account": "xxxxx",
      "AmiId": "ami-xxxxx",
      "ExternalIp": "127.0.0.1",
      "Hostname": "iexample",
      "InstanceId": "i-xxxxxxxxx",
      "InternalIp": "10.103.80.49",
      "LwTokenShort": "xxx",
      "Name": "example-name,
      "SubnetId": "subnet-xxx",
      "VmInstanceType": "r5n.4xlarge",
      "VmProvider": "AWS",
      "VpcId": "vpc-xxx",
      "Zone": "us-east-1c",
      "arch": "amd64",
      "os": "linux"
    }
  },

I'd hope to see a value here that has the status, or possibly last check in date

{
    "awsInstanceId": "i-xxxxx",
    "awsZone": "us-east-1c",
    "createdTime": "2022-07-01T13:00:20.627Z",
    "domain": "(none)",
    "hostname": "example",
    "kernel": "Linux",
    "kernelRelease": "5.4.0-1047",
    "status": "ACTIVE", // suggestion
    "lastCheckIn": "2022-07-05T13:00:20.627Z", // suggetion
    "kernelVersion": "#53-Ubuntu SMP Tue Mar 29 18:02:39 UTC 2022",
    "mid": 218518,
    "os": "Ubuntu",
    "osVersion": "18.04",
    "tags": {
      "Account": "xxxxx",
      "AmiId": "ami-xxxxx",
      "ExternalIp": "127.0.0.1",
      "Hostname": "iexample",
      "InstanceId": "i-xxxxxxxxx",
      "InternalIp": "10.103.80.49",
      "LwTokenShort": "xxx",
      "Name": "example-name,
      "SubnetId": "subnet-xxx",
      "VmInstanceType": "r5n.4xlarge",
      "VmProvider": "AWS",
      "VpcId": "vpc-xxx",
      "Zone": "us-east-1c",
      "arch": "amd64",
      "os": "linux"
    }
  },
@getsec getsec added the feat New feature or request label Jul 6, 2022
@afiune
Copy link
Contributor

afiune commented Jul 6, 2022

@getsec Hi there 👋🏽 - Thank you for your feedback! We will add both fields, status and lastUpdate.

@getsec
Copy link
Author

getsec commented Jul 6, 2022

@afiune As always, thank you! Never had such experience before :)

@afiune
Copy link
Contributor

afiune commented Jul 6, 2022

tenor-90572303

@afiune
Copy link
Contributor

afiune commented Jul 6, 2022

@afiune
Copy link
Contributor

afiune commented Aug 4, 2022

@getsec we just merged #866

We will be releasing a new version of the Lacework CLI (v0.40.0) that will have this feature!

tenor-100811232

@afiune afiune closed this as completed Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants