Slackbot
08/16/2023, 9:49 PMVishal Sharma
08/17/2023, 7:02 AMnitya-signoz
08/17/2023, 7:04 AMNoor Ali
08/17/2023, 11:49 AMreceivers:
filelog:
include: [ /Untiled/Users/nooramin-ali/Downloads/error_log
]
operators:
- type: regex_parser
regex: '^(?P<time>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}) (?P<sev>[A-Z]*) (?P<msg>.*)$'
timestamp:
parse_from: attributes.time
layout: '%Y-%m-%d %H:%M:%S'
severity:
parse_from: attributes.sev
I can run script in Signoz diretory on the same macNoor Ali
08/17/2023, 1:45 PMNoor Ali
08/17/2023, 4:00 PMNoor Ali
08/17/2023, 4:14 PMNoor Ali
08/17/2023, 5:41 PMNoor Ali
08/17/2023, 5:41 PMNoor Ali
08/17/2023, 5:46 PMNoor Ali
08/17/2023, 8:40 PMNoor Ali
08/17/2023, 8:41 PMNoor Ali
08/17/2023, 9:49 PMNoor Ali
08/17/2023, 9:54 PMNoor Ali
08/17/2023, 9:56 PMNoor Ali
08/18/2023, 2:59 AMNoor Ali
08/18/2023, 3:40 AMnitya-signoz
08/18/2023, 4:19 AMNoor Ali
08/18/2023, 12:22 PMNoor Ali
08/18/2023, 12:26 PMNoor Ali
08/18/2023, 12:30 PMNoor Ali
08/18/2023, 1:03 PMreceivers:
filelog:
include: [ /Untiled/Users/nooramin-ali/Documents/Log file/access.log
]
operators:
- type: regex_parser
regex: '^(?P<time>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}) (?P<sev>[A-Z]*) (?P<msg>.*)$'
timestamp:
parse_from: attributes.time
layout: '%Y-%m-%d %H:%M:%S'
severity:
parse_from: attributes.sev
in order for the logs to show up on Signoz we are doing POC without the Agent installNoor Ali
08/18/2023, 1:07 PMnitya-signoz
08/18/2023, 1:09 PMinclude:
and save the receiver here https://github.com/SigNoz/signoz/blob/6fb071cf377a9662d063b082ca20c73db65cbec3/deploy/docker/clickhouse-setup/otel-collector-config.yaml
Once done, restart your otel collector.nitya-signoz
08/18/2023, 1:09 PMNoor Ali
08/18/2023, 1:14 PMNoor Ali
08/18/2023, 1:37 PMNoor Ali
08/18/2023, 4:34 PMNoor Ali
08/18/2023, 6:14 PMNoor Ali
08/18/2023, 7:44 PMNoor Ali
08/18/2023, 7:53 PMNoor Ali
08/19/2023, 12:32 PMnitya-signoz
08/19/2023, 12:39 PMNoor Ali
08/21/2023, 11:29 AMnitya-signoz
08/21/2023, 11:31 AMNoor Ali
08/21/2023, 11:40 AMNoor Ali
08/21/2023, 11:41 AMNoor Ali
08/21/2023, 12:19 PMnitya-signoz
08/21/2023, 12:22 PMreceivers:
filelog:
include: [ /tmp/access.log, /tmp/error.log ]
start_at: beginning
tcplog/docker:
listen_address: "0.0.0.0:2255"
operators:
- type: regex_parser
regex: '^<([0-9]+)>[0-9]+ (?P<timestamp>[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]+)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?) (?P<container_id>\S+) (?P<container_name>\S+) [0-9]+ - -( (?P<body>.*))?'
timestamp:
parse_from: attributes.timestamp
layout: '%Y-%m-%dT%H:%M:%S.%LZ'
- type: move
from: attributes["body"]
to: body
- type: remove
field: attributes.timestamp
# please remove names from below if you want to collect logs from them
- type: filter
id: signoz_logs_filter
expr: 'attributes.container_name matches "^signoz-(logspout|frontend|alertmanager|query-service|otel-collector|otel-collector-metrics|clickhouse|zookeeper)"'
opencensus:
endpoint: 0.0.0.0:55678
otlp/spanmetrics:
protocols:
grpc:
endpoint: localhost:12345
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
jaeger:
protocols:
grpc:
endpoint: 0.0.0.0:14250
thrift_http:
endpoint: 0.0.0.0:14268
# thrift_compact:
# endpoint: 0.0.0.0:6831
# thrift_binary:
# endpoint: 0.0.0.0:6832
hostmetrics:
collection_interval: 30s
scrapers:
cpu: {}
load: {}
memory: {}
disk: {}
filesystem: {}
network: {}
prometheus:
config:
global:
scrape_interval: 60s
scrape_configs:
# otel-collector internal metrics
- job_name: otel-collector
static_configs:
- targets:
- localhost:8888
labels:
job_name: otel-collector
processors:
logstransform/internal:
operators:
- type: trace_parser
if: '"trace_id" in attributes or "span_id" in attributes'
trace_id:
parse_from: attributes.trace_id
span_id:
parse_from: attributes.span_id
output: remove_trace_id
- type: trace_parser
if: '"traceId" in attributes or "spanId" in attributes'
trace_id:
parse_from: attributes.traceId
span_id:
parse_from: attributes.spanId
output: remove_traceId
- id: remove_traceId
type: remove
if: '"traceId" in attributes'
field: attributes.traceId
output: remove_spanId
- id: remove_spanId
type: remove
if: '"spanId" in attributes'
field: attributes.spanId
- id: remove_trace_id
type: remove
if: '"trace_id" in attributes'
field: attributes.trace_id
output: remove_span_id
- id: remove_span_id
type: remove
if: '"span_id" in attributes'
field: attributes.span_id
batch:
send_batch_size: 10000
send_batch_max_size: 11000
timeout: 10s
signozspanmetrics/prometheus:
metrics_exporter: prometheus
latency_histogram_buckets: [100us, 1ms, 2ms, 6ms, 10ms, 50ms, 100ms, 250ms, 500ms, 1000ms, 1400ms, 2000ms, 5s, 10s, 20s, 40s, 60s ]
dimensions_cache_size: 100000
dimensions:
- name: service.namespace
default: default
- name: deployment.environment
default: default
# This is added to ensure the uniqueness of the timeseries
# Otherwise, identical timeseries produced by multiple replicas of
# collectors result in incorrect APM metrics
- name: 'signoz.collector.id'
# memory_limiter:
# # 80% of maximum memory up to 2G
# limit_mib: 1500
# # 25% of limit up to 2G
# spike_limit_mib: 512
# check_interval: 5s
#
# # 50% of the maximum memory
# limit_percentage: 50
# # 20% of max memory usage spike expected
# spike_limit_percentage: 20
# queued_retry:
# num_workers: 4
# queue_size: 100
# retry_on_failure: true
resourcedetection:
# Using OTEL_RESOURCE_ATTRIBUTES envvar, env detector adds custom labels.
detectors: [env, system] # include ec2 for AWS, gcp for GCP and azure for Azure.
timeout: 2s
extensions:
health_check:
endpoint: 0.0.0.0:13133
zpages:
endpoint: 0.0.0.0:55679
pprof:
endpoint: 0.0.0.0:1777
exporters:
clickhousetraces:
datasource: <tcp://clickhouse:9000/?database=signoz_traces>
docker_multi_node_cluster: ${DOCKER_MULTI_NODE_CLUSTER}
low_cardinal_exception_grouping: ${LOW_CARDINAL_EXCEPTION_GROUPING}
clickhousemetricswrite:
endpoint: <tcp://clickhouse:9000/?database=signoz_metrics>
resource_to_telemetry_conversion:
enabled: true
clickhousemetricswrite/prometheus:
endpoint: <tcp://clickhouse:9000/?database=signoz_metrics>
prometheus:
endpoint: 0.0.0.0:8889
# logging: {}
clickhouselogsexporter:
dsn: <tcp://clickhouse:9000/>
docker_multi_node_cluster: ${DOCKER_MULTI_NODE_CLUSTER}
timeout: 5s
sending_queue:
queue_size: 100
retry_on_failure:
enabled: true
initial_interval: 5s
max_interval: 30s
max_elapsed_time: 300s
service:
telemetry:
metrics:
address: 0.0.0.0:8888
extensions:
- health_check
- zpages
- pprof
pipelines:
traces:
receivers: [jaeger, otlp]
processors: [signozspanmetrics/prometheus, batch]
exporters: [clickhousetraces]
metrics:
receivers: [otlp]
processors: [batch]
exporters: [clickhousemetricswrite]
metrics/generic:
receivers: [hostmetrics]
processors: [resourcedetection, batch]
exporters: [clickhousemetricswrite]
metrics/prometheus:
receivers: [prometheus]
processors: [batch]
exporters: [clickhousemetricswrite/prometheus]
metrics/spanmetrics:
receivers: [otlp/spanmetrics]
exporters: [prometheus]
logs:
receivers: [otlp, filelog]
processors: [logstransform/internal, batch]
exporters: [clickhouselogsexporter]
nitya-signoz
08/21/2023, 12:29 PM/Untiled/Users/nooramin-ali/Documents/Log file/access.log:/tmp/access.log
mount the fileNoor Ali
08/21/2023, 12:46 PMNoor Ali
08/21/2023, 1:30 PMNoor Ali
08/21/2023, 3:04 PMNoor Ali
08/21/2023, 3:25 PMNoor Ali
08/21/2023, 4:25 PMNoor Ali
08/21/2023, 4:25 PMNoor Ali
08/21/2023, 4:59 PMNoor Ali
08/21/2023, 6:37 PMNoor Ali
08/21/2023, 6:49 PMNoor Ali
08/21/2023, 6:50 PMNoor Ali
08/21/2023, 7:21 PMNoor Ali
08/21/2023, 8:41 PMNoor Ali
08/21/2023, 8:43 PMNoor Ali
08/21/2023, 8:44 PMNoor Ali
08/21/2023, 9:22 PMNoor Ali
08/21/2023, 9:23 PMNoor Ali
08/21/2023, 9:39 PMinclude: [ /tmp/access.log, /tmp/error.log ]
start_at: beginning and this now /Untiled/Users/nooramin-ali/Documents/Log file/access.log:/tmp/access.log. What else I need to do in order to log show up on front end please it is very important for this POC to become successful . Thanksnitya-signoz
08/22/2023, 4:16 AM-
at the beginning as seen in other mounts and also reconfirm the path of the file once again. There might be some changes as thare are spaces in between your folder namesNoor Ali
08/22/2023, 11:24 AMNoor Ali
08/22/2023, 11:28 AMNoor Ali
08/22/2023, 11:37 AMNoor Ali
08/22/2023, 12:44 PMnitya-signoz
08/22/2023, 12:45 PMNoor Ali
08/22/2023, 12:45 PMNoor Ali
08/22/2023, 12:46 PMNoor Ali
08/22/2023, 12:46 PMnitya-signoz
08/22/2023, 12:46 PMnitya-signoz
08/22/2023, 12:47 PMdocker container restart signoz-otel-collector
Noor Ali
08/22/2023, 12:48 PMnitya-signoz
08/22/2023, 12:50 PMNoor Ali
08/22/2023, 12:54 PMNoor Ali
08/22/2023, 12:55 PMNoor Ali
08/22/2023, 12:55 PMNoor Ali
08/22/2023, 12:57 PMnitya-signoz
08/22/2023, 1:02 PMNoor Ali
08/22/2023, 1:03 PMNoor Ali
08/22/2023, 1:06 PMNoor Ali
08/22/2023, 2:35 PMnitya-signoz
08/22/2023, 2:40 PMNoor Ali
08/22/2023, 2:43 PMnitya-signoz
08/22/2023, 2:48 PMnitya-signoz
08/22/2023, 2:49 PMNoor Ali
08/22/2023, 2:49 PMNoor Ali
08/22/2023, 3:05 PMnitya-signoz
08/22/2023, 3:06 PMNoor Ali
08/22/2023, 3:06 PMNoor Ali
08/22/2023, 3:09 PMNoor Ali
08/22/2023, 3:10 PMNoor Ali
08/22/2023, 3:11 PMNoor Ali
08/22/2023, 3:12 PMnitya-signoz
08/22/2023, 3:15 PMNoor Ali
08/22/2023, 3:15 PMNoor Ali
08/22/2023, 3:22 PMNoor Ali
08/22/2023, 3:24 PMNoor Ali
08/22/2023, 3:28 PMNoor Ali
08/22/2023, 5:13 PMNoor Ali
08/23/2023, 11:23 AMnitya-signoz
08/23/2023, 11:38 AMtestaccess.rtf
logs in signoz right ?Noor Ali
08/23/2023, 11:39 AMNoor Ali
08/23/2023, 11:41 AMnitya-signoz
08/23/2023, 11:43 AMNoor Ali
08/23/2023, 11:43 AMNoor Ali
08/23/2023, 11:46 AMnitya-signoz
08/23/2023, 11:51 AMnitya-signoz
08/23/2023, 11:52 AMhttps://signoz-community.slack.com/archives/C01HWQ1R0BC/p1692791204599459?thread_ts=1692222584.184529&cid=C01HWQ1R0BCDepends on person to person and how much domain knowledge they.
Noor Ali
08/23/2023, 11:55 AMnitya-signoz
08/23/2023, 11:55 AMNoor Ali
08/23/2023, 12:23 PMNoor Ali
08/23/2023, 12:29 PMNoor Ali
08/23/2023, 12:34 PMNoor Ali
08/23/2023, 12:55 PMnitya-signoz
08/23/2023, 1:01 PMNoor Ali
08/23/2023, 1:07 PMNoor Ali
08/24/2023, 12:05 PMNoor Ali
08/25/2023, 7:09 PMNoor Ali
08/25/2023, 7:55 PMNoor Ali
08/25/2023, 8:07 PMNoor Ali
08/25/2023, 8:08 PMNoor Ali
08/25/2023, 9:40 PMNoor Ali
08/26/2023, 7:44 PMNoor Ali
08/26/2023, 7:44 PMNoor Ali
08/26/2023, 7:50 PMNoor Ali
08/26/2023, 8:22 PMNoor Ali
08/26/2023, 8:55 PMNoor Ali
08/28/2023, 1:47 AMNoor Ali
08/28/2023, 1:51 AMNoor Ali
08/28/2023, 1:57 AMNoor Ali
08/28/2023, 11:51 AMNoor Ali
08/28/2023, 11:52 AMNoor Ali
08/28/2023, 11:54 AMNoor Ali
08/28/2023, 11:57 AMNoor Ali
08/28/2023, 12:58 PMNoor Ali
08/28/2023, 1:00 PMNoor Ali
08/28/2023, 1:12 PMNoor Ali
08/28/2023, 1:21 PMNoor Ali
08/28/2023, 2:02 PMNoor Ali
08/28/2023, 2:49 PMNoor Ali
08/28/2023, 2:56 PMNoor Ali
08/28/2023, 3:03 PMNoor Ali
08/28/2023, 3:04 PMNoor Ali
08/28/2023, 3:18 PMNoor Ali
08/28/2023, 4:27 PMNoor Ali
08/28/2023, 4:34 PMNoor Ali
08/28/2023, 4:36 PMNoor Ali
08/28/2023, 6:45 PMNoor Ali
08/28/2023, 7:46 PMNoor Ali
08/28/2023, 7:52 PMNoor Ali
08/28/2023, 7:54 PM