讓ai agent 可以上網search
kk的blog
2026/05/23
最近一直有人反應 google寄google都會被送到垃圾信
看了一下原始郵件
發現spf沒有過
SPF: NONE,IP 209.85.220.41
所以在dns 把spf設定到google去
既然要設了
就連m365一起
;spf for google
aa,bb.com.tw. 3600 IN TXT "v=spf1 include:_spf.google.com ~all"
qq.bb.com.tw. 3600 IN TXT "v=spf1 include:_spf.google.com ~all"
;spf for m365
ee.bb.com.tw. 3600 IN TXT "v=spf1 include:spf.protection.outlook.com -all"
2026/05/21
2026/05/20
最近DNS一直出現很奇怪的問題
May 19 09:20:00 dns kernel: named[964]: segfault at 28 ip 00007f040568005b sp 00007f04006a6430 error 4 in libdns.so.1115.0.3[7f04055c1000+246000]
May 19 09:40:39 dns kernel: dnf[5632]: segfault at 10 ip 00007f8ea3a67620 sp 00007ffd82680990 error 4 in libpython3.6m.so.1.0[7f8ea38ef000+2ac000]
May 20 00:00:33 dns2 systemd-coredump[19617]: Process 884 (named) of user 25 dumped
core.#012#012Stack trace of thread 888:#012#0 0x00007f96c7b175af raise (libc.so.6)#
012#1 0x00007f96c7aeaee5 abort (libc.so.6)#012#2 0x000055b9e141fdfa assertion_fail
ed.cold.5 (named)#012#3 0x00007f96c9576e70 isc_assertion_failed (libisc.so.1107)#01
2#4 0x00007f96c95a22fa isc_task_attach (libisc.so.1107)#012#5 0x00007f96c95baa41 s
ocket_recv (libisc.so.1107)#012#6 0x00007f96ca9f7c30 startrecv (libdns.so.1115)#012
#7 0x00007f96ca9fd314 dns_dispatch_addresponse3 (libdns.so.1115)#012#8 0x00007f96c
a9fda75 dns_dispatch_addresponse2 (libdns.so.1115)#012#9 0x00007f96caac8370 resquer
y_send (libdns.so.1115)#012#10 0x00007f96caad27ab fctx_query (libdns.so.1115)#012#11
0x00007f96caad3077 fctx_try (libdns.so.1115)#012#12 0x00007f96caad39e0 fctx_start (
libdns.so.1115)#012#13 0x00007f96c959e794 dispatch (libisc.so.1107)#012#14 0x00007f9
6c959f402 run_slow (libisc.so.1107)#012#15 0x00007f96c82101ca start_thread (libpthre
ad.so.0)#012#16 0x00007f96c7b02953 __clone (libc.so.6)#012#012Stack trace of thread
889:#012#0 0x00007f96c8216628 pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0)
#012#1 0x00007f96c95bf410 isc_condition_waituntil (libisc.so.1107)#012#2 0x00007f9
6c95a51d3 run (libisc.so.1107)#012#3 0x00007f96c82101ca start_thread (libpthread.so
.0)#012#4 0x00007f96c7b02953 __clone (libc.so.6)#012#012Stack trace of thread 890:#
012#0 0x00007f96c7c081c7 epoll_wait (libc.so.6)#012#1 0x00007f96c95b483c watcher (
libisc.so.1107)#012#2 0x00007f96c82101ca start_thread (libpthread.so.0)#012#3 0x00
007f96c7b02953 __clone (libc.so.6)#012#012Stack trace of thread 887:#012#0 0x00007f
96c8216371 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0)#012#1 0x00007f96c959e4d
f dispatch (libisc.so.1107)#012#2 0x00007f96c959f41f run_normal (libisc.so.1107)#01
2#3 0x00007f96c82101ca start_thread (libpthread.so.0)#012#4 0x00007f96c7b02953 __c
lone (libc.so.6)#012#012Stack trace of thread 884:#012#0 0x00007f96c7b1792e __sigsu
spend (libc.so.6)#012#1 0x00007f96c95a85fc isc__app_ctxrun (libisc.so.1107)#012#2
0x00007f96c95a92cf isc_app_run (libisc.so.1107)#012#3 0x000055b9e1420d25 main (name
d)#012#4 0x00007f96c7b03865 __libc_start_main (libc.so.6)#012#5 0x000055b9e14216de
_start (named)
2026/05/18
2026/05/14
之前把loki升到 3.7的時候
有發現怎麼少了很多檔案
因為都會同時升級 promtail
昨天看文件才發現 EOL了
雖然還是可以用 但總是要找別的解決方案
找到了 vector
滿多人推的
官網有rpm但可以不用裝rpm
直接下載執行檔來執行就好了
vector config 根据原來的promtail 調整如下
# 1. 定義資料來源 (對應 Promtail 的 scrape_configs)
sources:
forti_logs:
type: "file"
include:
- "/var/log/messages"
# 對應 Promtail 的 positions.filename
data_dir: "/vector_data"
# 2. 處理資料與添加標籤 (對應 Promtail 的 labels)
transforms:
add_labels:
type: "remap"
inputs:
- "forti_logs"
source: |
.job = "forti_auth"
.host = get_hostname!()
# 3. 定義目的地 (對應 Promtail 的 clients.url)
sinks:
loki_output:
type: "loki"
inputs:
- "add_labels"
endpoint: "http://10.10.0.10:3100"
encoding:
codec: "text"
labels:
job: "{{ job }}"
host: "{{ host }}"
grafana官網是建議使用 alloy
但測了一下一直有問題
2026/05/12
訂閱:
文章 (Atom)


