-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add AIX support #15785
Comments
Hi, About dependencies, as you said a fix has been merged to disable Docker and K8s for platforms which don't support it. A few adjustments have to be made in order to fully disable the build of Docker packages (especially with tests), but it's no longer a needed dependency for AIX.
I'll keep posting updates on this issue. Edit 2020/04/01: Update dependencies |
@Helflym Awesome thanks so much this is an amazing effort and I'm excited to see all the progress you've made. Definitely keep us up to date here as you make more progress. I also updated the title as you suggested. I heard separately that metricbeat on AIX will require more effort due to the OS API being different. Are you working on that as well? |
Yes of course. For the moment, it seems that porting metrics dependencies (gosigar, go-sysinfo, etc) is enough to have a working metricbeat. Maybe the data won't be fully accurate and some fields will be missing. But it will be enough for a first metricbeat, and I will have time to improve them if needed. |
A quick update to say that I've released a first beta version of filebeat, metricbeat and auditbeat under our website: http://www.bullfreeware.com/?searching=true&package=beat&from=&to=&libraries=false&exact=false&version=5. Any feedback about configuration and/or modules would be much appreciated. I've started to push some patches for dependencies upstream but almost all of them are stuck right now. So, we'll have to wait to have AIX on the beats' upstream. |
Thanks for this effort @Helflym |
@Helflym are these the apache licensed filebeat/auditbeat code? |
@adammike I think yes. The maintainers will know more about this than me. |
@Helflym I want to try filbeat on AIX 7.2 to ship application logs to elastic and looking if there is a documented procedure. If there is one, can you point me to it please? |
@sanandece for now, the only available option to install filebeat is to use our RPM (http://www.bullfreeware.com/pkg?id=5615). We are planning to upstream the changes asap. |
I've updated the dependencies in my first post and added which ones have the AIX support merged in their upstream and which ones are still in progress. I've also added if they can be vendored here. |
For this effort are we targeting a set of POWER versions? It looks like Go only supports AIX 7.2. From this article, it looks like AIX 7.2 needs POWER7 or newer CPUs. Are we going to target POWER7 & POWER8? |
Golang toolchain only AIX 7.2 and Power8+ is supported. |
@mostlyjason @Helflym Just wanted to note that I put some effort into getting AIX specific metrics into Beats through the perfstat API a while ago. As of now that's far from complete regarding the set of metrics that could eventually be fetched. However it works for a few and the implementation could serve as an example for others. That's the code: https://github.com/WuerthIT/perfstatbeat |
@inxonic I've already done the work in order to have metricbeat working: elastic/gosigar#133 and elastic/go-sysinfo#77. However, same as you, I've only added the "mandatory" metrics for beats, some more can be added. |
Just a brief update -- There's still a couple open PRs on elastic's end. We're waiting until we have an AIX dev environment until we merge them. |
can i use Linux metricbeat binary on AIX because on download page of https://www.elastic.co/downloads/beats/metricbeat i am not seeing any AIX image? |
@serak no, you can't for multiple various, the first one being AIX having a different executable format than Linux. |
Hey folks, brief update for anyone tracking. Elastic finally has access to an AIX test environment, so I can start testing/developing support in metricbeat. |
Another update for y'all. The changes to |
@fearful-symmetry I've checked the patches I've done when starting the port earlier this year. Most of them we'll be useless for you (the one dealing with either dependencies or magefiles) but I guess a few are still worth it. 0001-auditbeat-module-file_integrity-port-for-AIX.txt |
i have installed this on AIX 7.2.0.0 and whenever i tried starting it using /opt/freeware/bin/filebeat -e it throws Illegal instruction(coredump) error user/# rpm -qR filebeat
/usr/bin/env
libc.a(shr_64.o)
libperfstat.a(shr_64.o)
libpthreads.a(shr_xpg5_64.o)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
appt1test:/opt/freeware/bin# prtconf
System Model: IBM,9117-MMC
Machine Serial Number: 064AC87
Processor Type: PowerPC_POWER7
Processor Implementation Mode: POWER 7
Processor Version: PV_7_Compat
Number Of Processors: 6
Processor Clock Speed: 3304 MHz
CPU Type: 64-bit
Kernel Type: 64-bit
LPAR Info: 4 app1tst
Memory Size: 35840 MB
Good Memory Size: 35840 MB
Platform Firmware level: AM770_123
Firmware Version: IBM,AM770_123
Console Login: enable
Auto Restart: true
Full Core: false
|
This filebeat is compiled using Golang toolchain which works only on Power8 and after. If you want to use filebeat on Power7, you'll need to rebuild it using gccgo. |
Thank you for your quick response. the error message was useless. i have a couple of Power9 servers i will try on those. how is this issue going for a native support for aix? what is missing right now? |
You're right, I should have displayed a warning when installing filebeat packages on Power7, as we do for Golang. |
In this case, Do I need to install Go toolchain separately on Power 8 or already built in function. What are the pre-requisite required inorder to start up metricbeat on Power 8. |
Normally, you don't need anything special, not even the Go toolchain. The metricbeat provided by BullFreeware is static. |
Thanks for your response. Only metricbeat-7.5.2-1.aix7.2.ppc.rpm package is enough from AIX client side right. I will be testing this package on power 8 server and metericbeat.yml should be fine to onboard in ELK dashboard. |
Successfully installed meteicbeat on power 8, how to start the daemon and configure. |
Not required unless you want to compile the source code :). just install the rpm and run it using "nohup /opt/freeware/bin/filebeat &" or just /opt/freeware/bin/filebeat -e to see the logs and close of session disconnect (for testing ) |
Successfully installed the filebeat-7.5.1-1beta.aix7.2.ppc.rpm in AIX 7.2 and encountered the Segmentation fault(coredump) problem when startup the filebeat using the command /opt/freeware/share/filebeat/bin/filebeat. Need help urgently. Thanks $ rpm -qa |
First, could you confirm that you're running on a Power8 or higher ? This filebeat version from BullFreeware isn't working for Power7. Secondly, could try to run gdb with the command ? It should be able to show which functions is causing the Segfault. |
Yes. The system is running in Power 9. We are not able to analyse the core dump using the gdb because the gdb only available for AIX 6.1 and cannot run in AIX 7.2 |
AIX ensures backward compatibility. Thus any sofware available in AIX 6.1 will work as is in AIX 7.2. So you can run gdb without any trouble. |
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
has anybody tried cross compile the source code
|
Hi! We're labeling this issue as |
would be nice to be able to install beats or elastic agent on AIX |
Time for Elastic to take a look at this project again. At a minimum Metricbeat and Filebeat should be available in a version 8.x format. AIX + Beats questions are plentiful on the discussion forums with no uptodate solutions. This thread have been open since 2020 with seemingly no progress or other easy solutions. |
Still no movement on this? Unless I'm missing a thread somewhere. Surely there has to be enough of a user base that would like Elastic Agent 8.x (Metricbeat/Filebeat) on AIX even if it isn't a common OS since "it does exist in great numbers in banking and insurance institutions that are highly regulated." Those two industries aren't short on money. You can also add large government agencies to that list so it's about time Elastic puts some effort into this so users don't have to use third party tools to efficiently get their metrics and logs. |
Cross referencing the issue on AIX elastic-agent support issue on the elastic-agent repository for visibility. |
Describe the enhancement:
Currently, Filebeat does not support AIX but we've had several enhancement requests from customers to support it. AIX is not a common OS these days, but it does exist in great numbers in banking and insurance institutions that are highly regulated.
Additional details:
One customer has already created a version of Filebeat for AIX in version 5.5.1 but builds started to fail in 6.0. http://www.bullfreeware.com/pkg?id=4650
Go has gained support for AIX rather recently (minimum AIX 7.2), but some of our dependencies are not compiling on AIX. For example, Docker lacks support for AIX. You can see the conversation on Discuss here https://discuss.elastic.co/t/attempting-to-compile-filebeat-in-aix/143378/4 and https://discuss.elastic.co/t/disable-docker-support/178228. A fix has already been merged to use Docker only on supported platforms #13509. There are additional dependencies that need support for AIX as well.
The text was updated successfully, but these errors were encountered: