Unable to connnect to SQLServer dataserver parameter not Working
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
Rechercherichtung
Es werden keine Quelldateien oder Tests genannt. Beginne mit der Konfiguration des SQL output plugin und dem TinyTDS-Verbindungsfehler und verfolge dann, wie dessen host- und dataserver-Parameter an den SQLServer adapter übergeben werden; abgeschlossen ist die Aufgabe, wenn eine dokumentierte, funktionierende Verbindung ohne die gemeldeten Konfigurationsfehler hergestellt ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
So I've been working with this plugin for some days and finally achieved sending logs to a local sqlserver container.
Now that Im trying in prepo I'm not able to connecto to the database.
And so I startted with
<match docker.caesar**>
@type copy
<store>
@type stdout
</store>
<store>
@type sql
log_level info
host 172........\sql2019pre
port 1433
chema_search_path piscinalogs
database db_Poseidon
adapter sqlserver
username "#{ENV['USER']}"
password "#{ENV['PASSWORD']}"
state_file /var/run/fluentd/sql_state
<table>
table logs
column_mapping 'time:timestamp,level:level,mensaje:message,Container_Name:containerName,App_Name:appName,Env:enviroment'
# This is the default table because it has no "pattern" argument in <table>
# The logic is such that if all non-default <table> blocks
# do not match, the default one is chosen.
# The default table is required.
flush_interval 10s
</table>
</store>
</match>
This configuration did not work since it returns
fluentd | 2024-08-29 09:42:24 +0000 [warn]: #0 failed to flush the buffer. retry_times=0 next_retry_time=2024-08-29 09:42:26 +0000 chunk="620cf46e28eacdbcecf964d3ed2978be" error_class=TinyTds::Error error="Server name not found in configuration files"
Then I investigated how activerecords connects to database and encounter that they used the param: dataserver
When removing the host param in order to introduce the dataserver param :
<match docker.caesar**>
@type copy
<store>
@type stdout
</store>
<store>
@type sql
log_level info
dataserver 172.......\sql2019pre
port 1433
chema_search_path piscinalogs
database db_Poseidon
adapter sqlserver
username "#{ENV['USER']}"
password "#{ENV['PASSWORD']}"
state_file /var/run/fluentd/sql_state
<table>
table logs
column_mapping 'time:timestamp,level:level,mensaje:message,Container_Name:containerName,App_Name:appName,Env:enviroment'
# This is the default table because it has no "pattern" argument in <table>
# The logic is such that if all non-default <table> blocks
# do not match, the default one is chosen.
# The default table is required.
flush_interval 10s
</table>
</store>
</match>
It returns:
fluentd | 2024-08-29 09:45:42 +0000 [error]: config error file="/fluentd/etc/fluent.conf" error_class=Fluent::ConfigError error="'host' parameter is required"
And so I decided to let both parameters
<match docker.caesar**>
@type copy
<store>
@type stdout
</store>
<store>
@type sql
host 172......
dataserver 172.......\sql2019pre
port 1433
chema_search_path piscinalogs
database db_Poseidon
adapter sqlserver
username "#{ENV['USER']}"
password "#{ENV['PASSWORD']}"
state_file /var/run/fluentd/sql_state
<table>
table logs
column_mapping 'time:timestamp,level:level,mensaje:message,Container_Name:containerName,App_Name:appName,Env:enviroment'
# This is the default table because it has no "pattern" argument in <table>
# The logic is such that if all non-default <table> blocks
# do not match, the default one is chosen.
# The default table is required.
flush_interval 10s
</table>
</store>
</match>
It returns: fluentd | 2024-08-29 09:48:34 +0000 [warn]: #0 failed to flush the buffer. retry_times=4 next_retry_time=2024-08-29 09:48:48 +0000 chunk="620cf5c1a09d87697d7c0f92760ef3fb" error_class=TinyTds::Error error="Unable to connect: Adaptive Server is unavailable or does not exist (172......)"
Im quite lost at this point
- Vorherrschende Sprache
- Ruby
- Sterne
- 112
- Forks
- 58
- Ø Merge
- 9 Min.
- Gemergte PRs (30 T.)
- 1
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus fluent/fluent-plugin-sql
-
enhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
fluent/fluent-plugin-sql#149 ·
-
bug needs-investigation
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 48/100
fluent/fluent-plugin-sql#141 · 1 Kommentar ·
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 42/100
fluent/fluent-plugin-sql#138 · 1 Kommentar ·
-
Missing Copyright and LicenseEvtl. wieder frei @ashie hat das vor 1169 Tagen übernommen, und es ist kein Pull Request offen. Offen
fluent/fluent-plugin-sql#134 · 6 Kommentare · 1 zugewiesene Person ·
-
enhancement
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 42/100
fluent/fluent-plugin-sql#133 · 2 Kommentare ·
Alle Issues in fluent/fluent-plugin-sql
Ähnliche Issues
-
agent:triaged bug bughunt pm:bundler priority:p1
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
SocketDev/socket-patch#1573 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug chat verified
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 6 Tagen
-
🐞 bug pending triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
CircuitVerse/CircuitVerse#8031 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Empty members in the Accept header cause a 500Evtl. vergeben @koic hat das heute übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
modelcontextprotocol/ruby-sdk#609 ·
Maintainer antworten meist innerhalb von 1 Tag
-
BazaRb::Fake#enter rejects dotted badges accepted by BazaRb#enterEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 84/100
Maintainer antworten meist innerhalb von 1 Tag