awk, count the number of occurrences of each IP address in the Secure.log in the number of IPs that cracked your password |access.log

Source: Internet
Author: User

count the number of occurrences of each IP that cracked your password in Secure.log
awk ' /failed password/{h[$ (NF-3)]++}end{for (Pol in h) print Pol,h[pol]} ' secure-20161219  |  Sort -rnk2| Head

Count The number of occurrences of each IP address in the Access.log
awk   ' {h[$1]++}end{for (Pol in h) print Pol,h[pol]} ' Access.log | Sort -rnk2 | Head

Gmt
Detection languageWorld languageChinese SimplifiedChinese TraditionalDanishUkrainianUzbek languageUrdu languageArmenianIgbo languageRussianBulgarianSinhala languageCroatianIcelandicGalicianCatalanHungarianZulu, South AfricaKannada languageHindiIndonesian SundaIndonesian JavaneseIndonesian languageGujaratiKazakhTurkishTajik languageSerbian languageSesotho languageWelshBengaliCebu languageNepalese languageBasque languageBoolean language (Afrikaans)HebrewGreekGermanItalianYiddishLatin languageLatvianNorwegianCzechSlovakSlovenianSwahiliPunjabiJapaneseGeorgian languageMaoriFrenchPolishBosnianPersianTeluguTamilThaiHaitian CreoleIrishEstonianSwedishBelarusian languageLithuanianSomalia languageYorubaBurmese languageRomanian languageLao languageFinnishHmongEnglishDutchFilipinoPortugueseMongolianSpanishHausa languageVietnameseAzerbaijani languageAlbanianArabicKoreanFYRO MacedonianMalagasy languageMarathiMalayalamMalayMalteseKhmer languageChichewa language World languageChinese SimplifiedChinese TraditionalDanishUkrainianUzbek languageUrdu languageArmenianIgbo languageRussianBulgarianSinhala languageCroatianIcelandicGalicianCatalanHungarianZulu, South AfricaKannada languageHindiIndonesian SundaIndonesian JavaneseIndonesian languageGujaratiKazakhTurkishTajik languageSerbian languageSesotho languageWelshBengaliCebu languageNepalese languageBasque languageBoolean language (Afrikaans)HebrewGreekGermanItalianYiddishLatin languageLatvianNorwegianCzechSlovakSlovenianSwahiliPunjabiJapaneseGeorgian languageMaoriFrenchPolishBosnianPersianTeluguTamilThaiHaitian CreoleIrishEstonianSwedishBelarusian languageLithuanianSomalia languageYorubaBurmese languageRomanian languageLao languageFinnishHmongEnglishDutchFilipinoPortugueseMongolianSpanishHausa languageVietnameseAzerbaijani languageAlbanianArabicKoreanFYRO MacedonianMalagasy languageMarathiMalayalamMalayMalteseKhmer languageChichewa language
Text-to-speech feature is limited to 200 characters
Options: History: Feedback: Donate Shut down

awk, count the number of occurrences of each IP address in the Secure.log in the number of IPs that cracked your password |access.log

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.