Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Read txt files and get MySQL data #2104

Closed
mapplechannel opened this issue Sep 12, 2023 · 1 comment
Closed

Read txt files and get MySQL data #2104

mapplechannel opened this issue Sep 12, 2023 · 1 comment
Labels

Comments

@mapplechannel
Copy link

1.Hello, when I read the txt file, I found that the read data was not in json format and could not be operated on. My yaml is:
input:
label: ""
sftp:
address: "127.0.0.1:22"
credentials:
username: "admin"
password: "123456"
private_key_file: ""
private_key_pass: ""
paths: [/home/sftp_root/shared/123.txt]
codec: all-bytes
watcher:
enabled: false
minimum_age: 1s
poll_interval: 1s
cache: ""

pipeline:
processors: []

output:
label: ""
stdout:
codec: lines

Please tell me how I should configure it so that the txt content can be turned into a json format data,thanks

2.Another question is that when I read the int value of MySQL, I found that the obtained data became string type. How can I keep the data type unchanged, which is int?

@Jeffail
Copy link
Collaborator

Jeffail commented Sep 12, 2023

Converting to a discussion as per: #2026

@redpanda-data redpanda-data locked and limited conversation to collaborators Sep 12, 2023
@Jeffail Jeffail converted this issue into discussion #2105 Sep 12, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

2 participants