Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Suricata v3.0 - Drop Rules Highlight Color

    Scheduled Pinned Locked Moved IDS/IPS
    4 Posts 2 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      TEP71
      last edited by

      I am having trouble differentiating from the dark red dropped rules from the black alerts. I am unfortunately color deficient. I see color just not in a normal way. I have a hard time with red and brown. Anyway, I was wondering which file to edit, to alter the highlighted color. Thanks.

      1 Reply Last reply Reply Quote 0
      • bmeeksB
        bmeeks
        last edited by

        @TEP71:

        I am having trouble differentiating from the dark red dropped rules from the black alerts. I am unfortunately color deficient. I see color just not in a normal way. I have a hard time with red and brown. Anyway, I was wondering which file to edit, to alter the highlighted color. Thanks.

        You can edit the PHP source file for the Suricata package and change the Bootstrap class to change color.  Unfortunately, if you reinstall Suricata or update the package, your change will get overwritten and need to be repeated.  Nevertheless, here is the change you need to make –

        1.  Edit the file /usr/local/www/suricata/suricata_alerts.php

        2.  Locate lines 962 through 964 in the file.  They should look like this:

        3.  Change the string "text-danger" to another valid Bootstrap text color class.  Some other valid options are "text-success" (green), "text-warning" (orange), "text-info" (teal) and "text-primary" (blue).  You could also use colored backgrounds instead of colored text with classes such as "bg-warning".  See this link for more examples: http://www.w3schools.com/bootstrap/bootstrap_typography.asp.

        Bill

        1 Reply Last reply Reply Quote 0
        • T
          TEP71
          last edited by

          Bill,

          Thank you very much. I understand I will have to change this every time there is an update. It wasn't a hard change to make and it is something I can do when needed. Thank you again for your time.

          –Thom

          1 Reply Last reply Reply Quote 0
          • bmeeksB
            bmeeks
            last edited by

            @TEP71:

            Bill,

            Thank you very much. I understand I will have to change this every time there is an update. It wasn't a hard change to make and it is something I can do when needed. Thank you again for your time.

            –Thom

            Glad to be of help.

            Bill

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.