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

Unable able to see the logs and doesn't trigger #15

Open
mmihir82 opened this issue Jun 12, 2020 · 0 comments
Open

Unable able to see the logs and doesn't trigger #15

mmihir82 opened this issue Jun 12, 2020 · 0 comments

Comments

@mmihir82
Copy link

Hello, Thank you of this pack. I have went thru configured and build it using default value and generated ST2 key and added. below is the example:

+----------+--------------------------------------------------------------+
| Property | Value                                                        |
+----------+--------------------------------------------------------------+
| id       | 5ee144fea84e178f8725b6c4                                     |
| pack     | ghost2logger                                                 |
| values   | {                                                            |
|          |     "ghost_ip": "0.0.0.0",                                   |
|          |     "ghost_port": "12023",                                   |
|          |     "password": "********",                                  |
|          |     "sensor_listen_ip": "0.0.0.0",                           |
|          |     "sensor_listen_port": "12022",                           |
|          |     "st2_api_key": "<< generated keys >>",             |
|          |     "st2url": "http://127.0.0.1:9101/v1/rules/?limit=10&pack |
|          | =ghost2logger",                                              |
|          |     "syslog_listen_port": "514",                             |
|          |     "username": "admin",                                     |
|          |     "web_hook_auth_header_key": "Authorization",             |
|          |     "web_hook_auth_header_val": "Basic YWRtaW46YWRtaW4="     |
|          | }                                                            |
+----------+--------------------------------------------------------------+

SENSOR LIST

+------------------------------+--------------+------------------------------+---------+
| ref                          | pack         | description                  | enabled |
+------------------------------+--------------+------------------------------+---------+
| linux.FileWatchSensor        | linux        | Sensor which monitors files  | True    |
|                              |              | for new lines                |         |
| ghost2logger.Ghost2loggerLoo | ghost2logger | Sensor that carries out      | True    |
| pback                        |              | loopback API activities      |         |
| ghost2logger.Ghost2loggerSen | ghost2logger | Sensor for Ghost2 Logger     | True    |
| sor                          |              |                              |         |
+------------------------------+--------------+------------------------------+---------+

here is the Rule:

| context       |                                                              |
| criteria      | {                                                            |
|               |     "trigger.host": {                                        |
|               |         "pattern": "192.168.1.1",                              |
|               |         "type": "eq"                                         |
|               |     },                                                       |
|               |     "trigger.pattern": {                                     |
|               |         "pattern": "SYS-5-CONFIG_STARTUP",                   |
|               |         "type": "eq"                                         |
|               |     }                                                        |
|               | }                                                            |

How to check the logs, and how do I know if this rule is correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant