Skip to main content
3 of 3
added 8 characters in body
Michael Mrozek
  • 95.7k
  • 40
  • 245
  • 236

Bash script and Database

I have an iptables firewall in Linux bridge (RHEL5). I want to extract information like IP address, port number, port type, date and time, etc. from log messages using a Bash script, and then want to upload it to a MySQL database to generate the reports.

How can I do this? Is there any way to accomplish the same thing?

user2914
  • 2.9k
  • 5
  • 25
  • 15