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

Log HTTP #521

Open
namhikelo opened this issue Aug 8, 2023 · 3 comments
Open

Log HTTP #521

namhikelo opened this issue Aug 8, 2023 · 3 comments

Comments

@namhikelo
Copy link

I am experiencing an issue where I am unable to see any log output when connecting to Docker exec for my container. I have configured my config.toml file for HTTP logging, but no logs are being displayed.

[listener]
type="socket"

[service.ssh-simulator]
type="ssh-simulator"
credentials=["root:root", "root:password"]

[[port]]
ports=["tcp/8022", "tcp/8023"]
services=["ssh-simulator"]

[service.telnet]
prompt=">>"
type="telnet"
image="/data/screenshot-20171030174349.png"
server-name="WS-3244"

[service.http01]
type="http"
server="Nginx"

[[port]]
port="tcp/80"
services=["http01"]

[[logging]]
output = "file"
channel = ["http-log"]
level = "debug"

[channel.http-log]
type = "file"
filename = "/var/log/http.log"
maxsize = 536870912
timeout = "30s"
services = ["http"]

[[port]]
port="tcp/5900"
services=["telnet"]

[channel.console]
type="console"

[channel.file]
type="file"
filename="/var/log/honeytrap.log"
maxsize=536870912
timeout="1h"

[[filter]]
channel=["console"]

[[logging]]
output = "stdout"
level = "debug"

I appreciate your assistance in resolving this issue. Let me know if any additional information is required. Thank you!

@sammynx
Copy link
Collaborator

sammynx commented Aug 11, 2023

You have to add the configured channels to the filter block, like this

[[filter]]
channel=["console","file","http-log"]

@namhikelo
Copy link
Author

I am need to log http request. And after I follow your request. And when I go to docker to see the log, it doesn't have the log request that I need.
Thanks you.

image

image

@namhikelo
Copy link
Author

@sammynx Can you help me pls ?

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

2 participants