1 |
| rest /services/deployment/server/clients splunk_server=local | table hostname applications*.stateOnClient | untable hostname applications value | eval applications=replace(applications,"applications\.(\w+)\.stateOnClient","\1") | stats values(applications) as applications by hostname |
emoji bonanza
Have you ever wanted to truly express your emotions related to your search results but wasn’t sure how? Why not use an emoji? But how, you ask? Well, problem solved. Welcome to the emoji bonanza!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 |
<form theme="light" hideFilters="true"> <label>emoji bonanza</label> <!--- Welcome to the emoji bonanza. A friend figured out how to get emoji in a dashboard, and I built this to see what was available. There are many more available; I'll add them as time permits. Punch list: find more character sets and make it easier to get to the selection options. If you need a touch of humor, poop is 128169. It always makes me chuckle. James Callahan www.professionalparanoid.com 1 Nov 2020 (waiting for the election during the pandemic, I needed a disctration). --> <!-- this row to debug and see how tokens are being set <row> <panel> <html>unicode: $unicode$ pass: $pass$ count: $count$ base: $base$ setter: $setter$</html> </panel> </row> --> <fieldset submitButton="false"> <input type="checkbox" token="MoaT" searchWhenChanged="true"> <label> </label> <choice value="Moat">Select Different Unicode Sets</choice> </input> </fieldset> <row><panel> <html> <details> <summary>Using Unicode Characters in Splunk Dashboards</summary> <details> <summary>What is this?</summary> This is a way to review how different Unicode Character will present in a dashboard.<br/> It also provides the Splunk eval statement necessary to add it to your query.<br/> </details> <details> <summary>Selecting different character sets</summary> Use the <font color="blue"><b>'Show Filters'</b></font> option above then select the check box. Some of the other character sets available will present in a row below. These are grouped according to a list found <a href="https://www.vertex42.com/ExcelTips/unicode-symbols.html" target="blank">here.</a> <br/> The official repository for unicode is <a href="https://unicode.org/emoji/charts/full-emoji-list.html" target="_blank">here</a>.<br/> One thing I noticed is that some icons that would fit in one category appear in others (musical notes for example), So, if you're looking for something specific, you may have to dig a bit.<br/> </details> <details> <summary>How to use this</summary> <p>If you see a character you might want to use, click on it in the table and it will present in the sample panels with both light and dark theme background colors.</p> Eventually, the goal is to figure out how to label these with names, but that will involve a lookup table, and right now this is just a single dashboard and not a full app.<br/> Here's a sample of how you can use this:<a href=" /app/search/search?q=%7Cmakeresults%20count%3D1%0A%7Ceval%20weather%3D(%22rain%22)%0A%7Ceval%20show%3Dcase(weather%3D%22rain%22%2Cprintf(%22%25c%22%2C%20127782)%2C%20weather%3D%22clouds%22%2C%20printf(%22%25c%22%2C%20127781)%2C%20weather%3D%22snow%22%2Cprintf(%22%25c%22%2C%20128169)%2C1%3D1%2Cprintf(%22%25c%22%2C%20127774))%0A%7Ctable%20show&display.page.search.mode=verbose&dispatch.sample_ratio=1&workload_pool=&earliest=-24h%40h&latest=now&display.page.search.tab=visualizations&display.general.type=visualizations&display.visualizations.type=singlevalue&display.visualizations.singlevalueHeight=214" target="_blank"> <b>Sample.</b> </a> When this opens in a new tab, adjust the 'weather' to one of the options (rain/clouds/snow) or to anything else to see the results. This should present as a single value visualization, but you can put these in any panel. </details> </details> </html> </panel></row> <row depends="$MoaT$"><panel> <input type="checkbox" token="emoji" searchWhenChanged="true"> <label></label> <choice value="emoji">Emoji</choice> </input> <input type="checkbox" token="char" searchWhenChanged="true"> <label> </label> <choice value="char">Characters</choice> </input> <input type="checkbox" token="game" searchWhenChanged="true"> <label> </label> <choice value="game">Music/Games</choice> </input> <input type="checkbox" token="misc" searchWhenChanged="true"> <label> </label> <choice value="misc">Miscellaneous</choice> </input> <input type="checkbox" token="graphic" searchWhenChanged="true"> <label> </label> <choice value="graphics">Graphics</choice> </input> <input type="checkbox" token="arrow" searchWhenChanged="true"> <label> </label> <choice value="arrow">Arrows</choice> </input> <input type="checkbox" token="math" searchWhenChanged="true"> <label> </label> <choice value="math">Math</choice> </input> </panel> <panel> <!-- unique boxes --> <input type="radio" token="checkbox" depends="$emoji$"> <label>Emoji & Pictrographs</label> <choice value="checkbox27">Emoticons</choice> <choice value="checkbox20">Misc Symbols</choice> <choice value="checkbox21">Dingbats</choice> <choice value="checkbox28">Pictographs</choice> <choice value="checkbox29">More Pictrographs</choice> <default>checkbox28</default> <change> <condition value="checkbox20"> <set token="unicode">9728</set> <set token="count">256</set> <set token="base">9727</set> </condition> <condition value="checkbox21"> <set token="unicode">9984</set> <set token="count">192</set> <set token="base">9983</set> </condition> <condition value="checkbox27"> <set token="unicode">128521</set> <set token="count">71</set> <set token="base">128520</set> </condition> <condition value="checkbox28"> <set token="unicode">127790</set> <set token="count">768</set> <set token="base">127743</set> </condition> <condition value="checkbox29"> <set token="unicode">129305</set> <set token="count">252</set> <set token="base">129279</set> </condition> </change> </input> <input type="radio" token="checkbox" depends="$misc$"> <label>Misc</label> <default>checkbox17</default> <choice value="checkbox15">Misc-Tech</choice> <choice value="checkbox30">Transport and Map</choice> <choice value="checkbox31"> Control Pictures</choice> <change> <condition value="checkbox15"> <set token="unicode">9009</set> <set token="count">256</set> <set token="base">8959</set> </condition> <condition value="checkbox30"> <set token="unicode">128640</set> <set token="count">128</set> <set token="base">128639</set> </condition> <condition value="checkbox31"> <set token="unicode">9249</set> <set token="count">96</set> <set token="base">9216</set> </condition> </change> </input> <input type="radio" token="checkbox" depends="$game$"> <label>Music & Games</label> <default>checkbox2</default> <choice value="checkbox24">Music</choice> <choice value="checkbox25">Dominos</choice> <choice value="checkbox26">Cards</choice> <change> <condition value="checkbox24"> <set token="unicode">119070</set> <set token="count">256</set> <set token="base">119039</set> </condition> <condition value="checkbox25"> <set token="unicode">127098</set> <set token="count">112</set> <set token="base">127023</set> </condition> <condition value="checkbox26"> <set token="unicode">127137</set> <set token="count">96</set> <set token="base">127135</set> </condition> </change> </input> <input id="radiochar" type="radio" token="checkbox" depends="$char$"> <label>Character Set</label> <default>checkbox2</default> <choice value="checkbox1">Standard Character Set</choice> <choice value="checkbox2">General Punctuation</choice> <choice value="checkbox3">Super and subscripts</choice> <choice value="checkbox16">Enclosed Characters</choice> <choice value="checkbox4">Currency</choice> <choice value="checkbox5">Letterlike</choice> <choice value="checkbox6">Greek</choice> <choice value="checkbox22">Braille</choice> <change> <condition value="checkbox1"> <set token="unicode">74</set> <set token="count">256</set> <set token="base">-1</set> </condition> <condition value="checkbox2"> <set token="unicode">8253</set> <set token="count">95</set> <set token="base">8191</set> </condition> <condition value="checkbox3"> <set token="unicode">8304</set> <set token="count">48</set> <set token="base">8303</set> </condition> <condition value="checkbox4"> <set token="unicode">8364</set> <set token="count">48</set> <set token="base">8351</set> </condition> <condition value="checkbox5"> <set token="unicode">8478</set> <set token="count">80</set> <set token="base">8447</set> </condition> <condition value="checkbox16"> <set token="unicode">9312</set> <set token="count">160</set> <set token="base">9311</set> </condition> <condition value="checkbox6"> <set token="unicode">937</set> <set token="count">57</set> <set token="base">912</set> </condition> <condition value="checkbox22"> <set token="unicode">10269</set> <set token="count">256</set> <set token="base">10239</set> </condition> </change> </input> <input type="radio" token="checkbox" depends="$graphic$"> <label>Graphics</label> <default>checkbox18</default> <choice value="checkbox17">Box Drawing</choice> <choice value="checkbox18">Block Elements</choice> <choice value="checkbox19">More Geometric Shapes</choice> <change> <condition value="checkbox17"> <set token="unicode">9568</set> <set token="count">128</set> <set token="base">9471</set> </condition> <condition value="checkbox18"> <set token="unicode">9600</set> <set token="count">32</set> <set token="base">9599</set> </condition> <condition value="checkbox19"> <set token="unicode">128896</set> <set token="count">128</set> <set token="base">128895</set> </condition> </change> </input> <input type="radio" token="checkbox" depends="$arrow$"> <label>Arrows</label> <default>checkbox8</default> <choice value="checkbox8">Arrows</choice> <choice value="checkbox9">More Arrows A</choice> <choice value="checkbox10">More Arrows C</choice> <choice value="checkbox11">More Arrows A</choice> <choice value="checkbox23">More Misc Symb and Arrows</choice> <change> <condition value="checkbox8"> <set token="unicode">8592</set> <set token="count">112</set> <set token="base">8591</set> </condition> <condition value="checkbox9"> <set token="unicode">10224</set> <set token="count">15</set> <set token="base">10223</set> </condition> <condition value="checkbox10"> <set token="unicode">10496</set> <set token="count">132</set> <set token="base">10495</set> </condition> <condition value="checkbox11"> <set token="unicode">129024</set> <set token="count">706</set> <set token="base">129023</set> </condition> <condition value="checkbox23"> <set token="unicode">11008</set> <set token="count">256</set> <set token="base">11007</set> </condition> </change> </input> <input type="radio" token="checkbox" depends="$math$"> <label>Math</label> <default>checkbox12</default> <choice value="checkbox12">Math</choice> <choice value="checkbox13">more Math A</choice> <choice value="checkbox14">more Math B</choice> <choice value="checkbox7">Number forms</choice> <change> <condition value="checkbox12"> <set token="unicode">8734</set> <set token="count">256</set> <set token="base">8703</set> </condition> <condition value="checkbox13"> <set token="unicode">10624</set> <set token="count">128</set> <set token="base">10623</set> </condition> <condition value="checkbox14"> <set token="unicode">10752</set> <set token="count">256</set> <set token="base">10751</set> </condition> <condition value="checkbox7"> <set token="unicode">8555</set> <set token="count">64</set> <set token="base">8527</set> </condition> </change> </input> </panel> </row> <row depends="$hide$"> <panel> <html> <style> #radiosample div[data-test="radio-list"]{ display: inline; } #radiosample div[data-test="option"]{ display: inline; margin-top: 0px; margin-right: 10px; margin-bottom: 0px; margin-left: 0px } #radiosample { width:100%; } </style> <style> table tbody tr td{ font-size:125% !important; } </style> </html> </panel> </row> <!-- Show this stuff --> <row> <panel> <title>Light Theme for $unicode$</title> <single> <search> <query>|makeresults count=1 |eval emoji=printf("%c", $unicode$) |table emoji</query> <earliest>-24h@h</earliest> <latest>now</latest> <sampleRatio>1</sampleRatio> </search> <option name="colorBy">value</option> <option name="colorMode">none</option> <option name="drilldown">all</option> <option name="height">358</option> <option name="numberPrecision">0</option> <option name="rangeColors">["0x53a051", "0x0877a6", "0xf8be34", "0xf1813f", "0xdc4e41"]</option> <option name="rangeValues">[0,30,70,100]</option> <option name="showSparkline">1</option> <option name="showTrendIndicator">1</option> <option name="trellis.enabled">0</option> <option name="trellis.scales.shared">1</option> <option name="trellis.size">medium</option> <option name="trendColorInterpretation">standard</option> <option name="trendDisplayMode">absolute</option> <option name="unitPosition">after</option> <option name="useColors">0</option> <option name="useThousandSeparators">1</option> </single> </panel> <panel> <title>Dark Theme for $unicode$</title> <single> <search> <query>|makeresults count=1 |eval emoji=printf("%c", $unicode$) |table emoji</query> <earliest>-24h@h</earliest> <latest>now</latest> <sampleRatio>1</sampleRatio> </search> <option name="colorBy">value</option> <option name="colorMode">block</option> <option name="drilldown">none</option> <option name="height">358</option> <option name="numberPrecision">0</option> <option name="rangeColors">["0x555","0xdc4e41"]</option> <option name="rangeValues">[10000000]</option> <option name="showSparkline">1</option> <option name="showTrendIndicator">1</option> <option name="trellis.enabled">0</option> <option name="trellis.scales.shared">1</option> <option name="trellis.size">medium</option> <option name="trendColorInterpretation">standard</option> <option name="trendDisplayMode">absolute</option> <option name="unitPosition">after</option> <option name="useColors">1</option> <option name="useThousandSeparators">1</option> </single> </panel> <panel> <html> <div style="text-align: center;"> <br/> <font size="+1">Code for your dashboard:</font><p> <br/> <br/> <font size="+3" color="blue">|eval emoji=printf("%c", $unicode$)</font> </p> <br/> <br/> Copy and paste into your query and rename 'emoji' to your field name. <p><a href="https://unicode.org/emoji/charts/full-emoji-list.html" target="_blanl">Full emoji list from unicode.org</a></p> </div> </html> </panel> </row> <row depends="$nevershow$"> <panel> <table> <search> <query> |makeresults count=1 |eval passmeplease=("$pass$") |rex field=passmeplease "\S\s+(?<unicode>\d+)" </query> <done> <set token="unicode">$result.unicode$</set> </done> </search> </table> </panel> </row> <row> <panel> <table> <search> <query> |makeresults count=$count$ |eval base = tonumber("1F380",16) |eval base = $base$ |streamstats count |eval unicode_value = base + count |sort unicode_value |eval emoji=printf("%c", unicode_value) |eval chartme=(emoji+" "+unicode_value) |eval sets = count % 6 |eval fields_{sets} = chartme |stats values(fields_*) as fields_* |rename fields_1 as "fields ", fields_2 as "fields ", fields_3 as "fields ", fields_4 as "fields ", fields_5 as "fields ", fields_0 as "fields" |table "fields ","fields ","fields ","fields ","fields ", "fields" </query> <earliest>-24h@h</earliest> <latest>now</latest> <sampleRatio>1</sampleRatio> </search> <fields>"fields ","fields ","fields ","fields ","fields ", "fields"</fields> <option name="count">100</option> <option name="dataOverlayMode">none</option> <option name="drilldown">cell</option> <option name="percentagesRow">false</option> <option name="rowNumbers">false</option> <option name="totalsRow">false</option> <option name="wrap">true</option> <drilldown> <set token="pass">$click.value2$</set> </drilldown> </table> </panel> </row> </form> |
Identifying Hosts not sending data for more than 6 hours
1 2 3 4 5 6 7 8 |
| tstats latest(_time) as latest where index!="*_" earliest=-9h by host index sourcetype | eval recent = if(latest > relative_time(now(),"-360m"),"1","0"), LastReceiptTime = strftime(latest,"%c") | where recent=0 | sort LastReceiptTime | eval age=now()-latest | eval age=round((age/60/60),1) | eval age=age."hour" | fields - recent latest |
Get unexpected shutdown date with downtime duration
Mainly saving you the headache of handling hidden characters which made field extraction harder than it needed to be.
1 2 3 4 5 6 |
source="*WinEventLog:System" EventCode=6008 "unexpected" | rex "shutdown\s+at\s+(?<time>.*)\s+on\s+[^\d]?(?<month>\d+)\/[^\d]?(?<day>\d+)\/[^\d]?(?<year>\d+)\s+was" | eval shutdownTime = strptime(year."-".month."-".day." ".time,"%Y-%m-%d %M:%H:%S %p") | eval downTimeDays = round((_time-shutdownTime)/86400,2) | eval shutdownTime = strftime(shutdownTime,"%c") | table _time, host, shutdownTime, downTimeDays |
Zerologon Detection (CVE-2020-1472)
Primary Search for Local Domain Controller Exploitation by Zerologon
1 2 3 4 5 6 7 |
index="<windows_index>" (sourcetype="<windows_sourcetype_security>" OR source="windows_source_security") EventCode="4742" OR EventCode="4624" AND (src_user="*anonymous*" OR member_id="*S-1-0*") `comment("This looks for all 4624 and 4742 events under an 'ANONYMOUS USER', which are tied to the exploitation of Zerologon")` | eval local_system=mvindex(upper(split(user,"$")),0) `comment("This effectively splits the user field, which when parsed with the TA for Windows, may also appear as the Target User. Since the exploit would specifically occur using a local account on the Domain Controller, it stands to reason that detecting a modified user object, modified by a local system account, would be evidence of the exploit. The split removes the '$', creating a new field, deriving the local_system name via the original user field [ie. user='NameOfDC$' would become local_system='NameofDC']")` | search host=local_system `comment("A search to only find instances of these events when the host (DC) is the same as the extracted local_system account name performing the action")` | table _time EventCode dest host ComputerName src_user Account_Name local_system user Security_ID member_id src_nt_domain dest_nt_domain |
You can also modify this search to only look at your Active Directory DCs. If you have common naming schemas, you can use that as well. Please see the report linked to get more info about the CVE itself.
Splunk dashboard that displays User searches
Built this dashboard to give a high level overview of user search activity. The search powering the dashboard is looking that the _audit index and you will need to ensure that you have proper access to the internal Splunk indexes. The dashboard includes a TimeRange picker, radio button to include or exclude Splunk’s system user, […]
Windows Software Matrix
Description: This query will generate a software matrix or viewing the versions and names of all software installed on windows hosts reporting to Splunk. It requires the Stanza [script://.\bin\win_installed_apps.bat] enabled in the Splunk_TA_Windows Add-on. We run this once a day and have a dashboard for viewing the data that’s hard set for the past 24 […]
ProofPoint TAP Dashboard
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 |
<form> <label>TAP Dashboard</label> <description>Direct pull from TAP API</description> <fieldset autoRun="true" submitButton="false"> <input type="time" token="time" searchWhenChanged="true"> <label>Select Time</label> <default> <earliest>@d</earliest> <latest>now</latest> </default> </input> </fieldset> <row> <panel> <title>Quarantine Trends</title> <chart> <search> <query>sourcetype=proofpoint_tap quarantineFolder=* AND quarantineFolder!="" | stats dc(messageID) AS distinct_message_ids by quarantineFolder | sort -distinct_message_ids</query> <earliest>$earliest$</earliest> <latest>$latest$</latest> </search> <option name="charting.chart">pie</option> <option name="charting.chart.showDataLabels">all</option> <option name="charting.drilldown">all</option> <option name="charting.legend.placement">none</option> <option name="refresh.display">progressbar</option> </chart> </panel> <panel> <chart> <title>Top 10 recipients</title> <search> <query>index=email_na sourcetype="proofpoint_tap" | top 10 recipient{} | rename recipient{} as Recipient count as Count</query> <earliest>$time.earliest$</earliest> <latest>$time.latest$</latest> </search> <option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option> <option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option> <option name="charting.axisTitleX.visibility">visible</option> <option name="charting.axisTitleY.visibility">visible</option> <option name="charting.axisTitleY2.visibility">visible</option> <option name="charting.axisX.scale">linear</option> <option name="charting.axisY.scale">linear</option> <option name="charting.axisY2.enabled">0</option> <option name="charting.axisY2.scale">inherit</option> <option name="charting.chart">bar</option> <option name="charting.chart.bubbleMaximumSize">50</option> <option name="charting.chart.bubbleMinimumSize">10</option> <option name="charting.chart.bubbleSizeBy">area</option> <option name="charting.chart.nullValueMode">gaps</option> <option name="charting.chart.showDataLabels">all</option> <option name="charting.chart.sliceCollapsingThreshold">0.01</option> <option name="charting.chart.stackMode">default</option> <option name="charting.chart.style">shiny</option> <option name="charting.drilldown">all</option> <option name="charting.layout.splitSeries">0</option> <option name="charting.layout.splitSeries.allowIndependentYRanges">0</option> <option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option> <option name="charting.legend.placement">none</option> </chart> </panel> </row> <row> <panel> <chart> <title>All Events Timeline</title> <search> <query>index=email_na index=email_na sourcetype="proofpoint_tap" eventType!=NULL | timechart count by eventType</query> <earliest>$time.earliest$</earliest> <latest>$time.latest$</latest> </search> <option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option> <option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option> <option name="charting.axisTitleX.text">Time</option> <option name="charting.axisTitleX.visibility">visible</option> <option name="charting.axisTitleY.visibility">visible</option> <option name="charting.axisTitleY2.visibility">visible</option> <option name="charting.axisX.scale">linear</option> <option name="charting.axisY.scale">linear</option> <option name="charting.axisY2.enabled">0</option> <option name="charting.axisY2.scale">inherit</option> <option name="charting.chart">column</option> <option name="charting.chart.bubbleMaximumSize">50</option> <option name="charting.chart.bubbleMinimumSize">10</option> <option name="charting.chart.bubbleSizeBy">area</option> <option name="charting.chart.nullValueMode">gaps</option> <option name="charting.chart.showDataLabels">none</option> <option name="charting.chart.sliceCollapsingThreshold">0.01</option> <option name="charting.chart.stackMode">stacked</option> <option name="charting.chart.style">shiny</option> <option name="charting.drilldown">all</option> <option name="charting.layout.splitSeries">0</option> <option name="charting.layout.splitSeries.allowIndependentYRanges">0</option> <option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option> <option name="charting.legend.placement">right</option> </chart> </panel> <panel> <chart> <title>All Event Types</title> <search> <query>index=email_na sourcetype="proofpoint_tap" eventType!=NULL | chart count by eventType | rename count as Count</query> <earliest>$time.earliest$</earliest> <latest>$time.latest$</latest> </search> <option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option> <option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option> <option name="charting.axisTitleX.visibility">visible</option> <option name="charting.axisTitleY.visibility">visible</option> <option name="charting.axisTitleY2.visibility">visible</option> <option name="charting.axisX.scale">linear</option> <option name="charting.axisY.scale">linear</option> <option name="charting.axisY2.enabled">0</option> <option name="charting.axisY2.scale">inherit</option> <option name="charting.chart">bar</option> <option name="charting.chart.bubbleMaximumSize">50</option> <option name="charting.chart.bubbleMinimumSize">10</option> <option name="charting.chart.bubbleSizeBy">area</option> <option name="charting.chart.nullValueMode">gaps</option> <option name="charting.chart.showDataLabels">all</option> <option name="charting.chart.sliceCollapsingThreshold">0.01</option> <option name="charting.chart.stackMode">default</option> <option name="charting.chart.style">shiny</option> <option name="charting.drilldown">all</option> <option name="charting.layout.splitSeries">0</option> <option name="charting.layout.splitSeries.allowIndependentYRanges">0</option> <option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option> <option name="charting.legend.placement">none</option> </chart> </panel> </row> <row> <panel> <chart> <title>Message Event Timeline</title> <search> <query>index=email_na sourcetype="proofpoint_tap" eventType=message* threatsInfoMap{}.classification!=NULL | timechart count by threatsInfoMap{}.classification</query> <earliest>$time.earliest$</earliest> <latest>$time.latest$</latest> </search> <option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option> <option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option> <option name="charting.axisTitleX.text">Time</option> <option name="charting.axisTitleX.visibility">visible</option> <option name="charting.axisTitleY.visibility">visible</option> <option name="charting.axisTitleY2.visibility">visible</option> <option name="charting.axisX.scale">linear</option> <option name="charting.axisY.scale">linear</option> <option name="charting.axisY2.enabled">0</option> <option name="charting.axisY2.scale">inherit</option> <option name="charting.chart">column</option> <option name="charting.chart.bubbleMaximumSize">50</option> <option name="charting.chart.bubbleMinimumSize">10</option> <option name="charting.chart.bubbleSizeBy">area</option> <option name="charting.chart.nullValueMode">gaps</option> <option name="charting.chart.showDataLabels">none</option> <option name="charting.chart.sliceCollapsingThreshold">0.01</option> <option name="charting.chart.stackMode">stacked</option> <option name="charting.chart.style">shiny</option> <option name="charting.drilldown">all</option> <option name="charting.layout.splitSeries">0</option> <option name="charting.layout.splitSeries.allowIndependentYRanges">0</option> <option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option> <option name="charting.legend.placement">right</option> </chart> </panel> <panel> <chart> <title>Top TAP Classification</title> <search> <query>index=email_na sourcetype="proofpoint_tap" | eval classification=if(isnotnull(classification), classification, 'threatsInfoMap{}.classification') | top limit=20 classification | rename classification as Classification count as Count</query> <earliest>$time.earliest$</earliest> <latest>$time.latest$</latest> </search> <option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option> <option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option> <option name="charting.axisTitleX.visibility">visible</option> <option name="charting.axisTitleY.visibility">visible</option> <option name="charting.axisTitleY2.visibility">visible</option> <option name="charting.axisX.scale">linear</option> <option name="charting.axisY.scale">linear</option> <option name="charting.axisY2.enabled">0</option> <option name="charting.axisY2.scale">inherit</option> <option name="charting.chart">bar</option> <option name="charting.chart.bubbleMaximumSize">50</option> <option name="charting.chart.bubbleMinimumSize">10</option> <option name="charting.chart.bubbleSizeBy">area</option> <option name="charting.chart.nullValueMode">gaps</option> <option name="charting.chart.showDataLabels">all</option> <option name="charting.chart.sliceCollapsingThreshold">0.01</option> <option name="charting.chart.stackMode">default</option> <option name="charting.chart.style">shiny</option> <option name="charting.drilldown">all</option> <option name="charting.layout.splitSeries">0</option> <option name="charting.layout.splitSeries.allowIndependentYRanges">0</option> <option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option> <option name="charting.legend.placement">none</option> </chart> </panel> </row> <row> <panel> <chart> <title>Blocked Message Threat Types</title> <search> <query>index=email_na sourcetype="proofpoint_tap" eventType=messagesBlocked threatsInfoMap{}.threatType!=NULL | chart count as Count by threatsInfoMap{}.threatType | rename "threatsInfoMap{}.threatType" as "Threat Type"</query> <earliest>$time.earliest$</earliest> <latest>$time.latest$</latest> </search> <option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option> <option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option> <option name="charting.axisTitleX.visibility">visible</option> <option name="charting.axisTitleY.visibility">visible</option> <option name="charting.axisTitleY2.visibility">visible</option> <option name="charting.axisX.scale">linear</option> <option name="charting.axisY.scale">linear</option> <option name="charting.axisY2.enabled">0</option> <option name="charting.axisY2.scale">inherit</option> <option name="charting.chart">bar</option> <option name="charting.chart.bubbleMaximumSize">50</option> <option name="charting.chart.bubbleMinimumSize">10</option> <option name="charting.chart.bubbleSizeBy">area</option> <option name="charting.chart.nullValueMode">gaps</option> <option name="charting.chart.showDataLabels">all</option> <option name="charting.chart.sliceCollapsingThreshold">0.01</option> <option name="charting.chart.stackMode">default</option> <option name="charting.chart.style">shiny</option> <option name="charting.drilldown">all</option> <option name="charting.layout.splitSeries">0</option> <option name="charting.layout.splitSeries.allowIndependentYRanges">0</option> <option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option> <option name="charting.legend.placement">none</option> </chart> </panel> <panel> <chart> <title>All Message Threat Types</title> <search> <query>index=email_na sourcetype="proofpoint_tap" threatsInfoMap{}.threatType!=NULL | chart count as Count by threatsInfoMap{}.threatType | rename "threatsInfoMap{}.threatType" as "Threat Type"</query> <earliest>$time.earliest$</earliest> <latest>$time.latest$</latest> </search> <option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option> <option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option> <option name="charting.axisTitleX.visibility">visible</option> <option name="charting.axisTitleY.visibility">visible</option> <option name="charting.axisTitleY2.visibility">visible</option> <option name="charting.axisX.scale">linear</option> <option name="charting.axisY.scale">linear</option> <option name="charting.axisY2.enabled">0</option> <option name="charting.axisY2.scale">inherit</option> <option name="charting.chart">bar</option> <option name="charting.chart.bubbleMaximumSize">50</option> <option name="charting.chart.bubbleMinimumSize">10</option> <option name="charting.chart.bubbleSizeBy">area</option> <option name="charting.chart.nullValueMode">gaps</option> <option name="charting.chart.showDataLabels">all</option> <option name="charting.chart.sliceCollapsingThreshold">0.01</option> <option name="charting.chart.stackMode">default</option> <option name="charting.chart.style">shiny</option> <option name="charting.drilldown">all</option> <option name="charting.layout.splitSeries">0</option> <option name="charting.layout.splitSeries.allowIndependentYRanges">0</option> <option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option> <option name="charting.legend.placement">none</option> </chart> </panel> <panel> <chart> <title>Message Spam Types</title> <search> <query>index=email_na sourcetype="proofpoint_tap" eventType=message* | eval spamType=if(malwareScore > 0, "Malware", if(phishScore > 0,"Phishing", if(spamScore > 0, "Spam", if(imposterScore > 0, "imposter", "notSpam")))) | top limit=20 spamType | rename "spamType" as "Spam Type" count as Count</query> <earliest>$time.earliest$</earliest> <latest>$time.latest$</latest> </search> <option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option> <option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option> <option name="charting.axisTitleX.visibility">visible</option> <option name="charting.axisTitleY.visibility">visible</option> <option name="charting.axisTitleY2.visibility">visible</option> <option name="charting.axisX.scale">linear</option> <option name="charting.axisY.scale">linear</option> <option name="charting.axisY2.enabled">0</option> <option name="charting.axisY2.scale">inherit</option> <option name="charting.chart">bar</option> <option name="charting.chart.bubbleMaximumSize">50</option> <option name="charting.chart.bubbleMinimumSize">10</option> <option name="charting.chart.bubbleSizeBy">area</option> <option name="charting.chart.nullValueMode">gaps</option> <option name="charting.chart.showDataLabels">all</option> <option name="charting.chart.sliceCollapsingThreshold">0.01</option> <option name="charting.chart.stackMode">default</option> <option name="charting.chart.style">shiny</option> <option name="charting.drilldown">all</option> <option name="charting.layout.splitSeries">0</option> <option name="charting.layout.splitSeries.allowIndependentYRanges">0</option> <option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option> <option name="charting.legend.placement">none</option> </chart> </panel> <panel> <chart> <title>Delivered Message Threat Types</title> <search> <query>index=email_na sourcetype="proofpoint_tap" eventType=messagesDelivered threatsInfoMap{}.threatType!=NULL | chart count as Count by threatsInfoMap{}.threatType | rename "threatsInfoMap{}.threatType" as "Threat Type"</query> <earliest>$time.earliest$</earliest> <latest>$time.latest$</latest> </search> <option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option> <option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option> <option name="charting.axisTitleX.visibility">visible</option> <option name="charting.axisTitleY.visibility">visible</option> <option name="charting.axisTitleY2.visibility">visible</option> <option name="charting.axisX.scale">linear</option> <option name="charting.axisY.scale">linear</option> <option name="charting.axisY2.enabled">0</option> <option name="charting.axisY2.scale">inherit</option> <option name="charting.chart">bar</option> <option name="charting.chart.bubbleMaximumSize">50</option> <option name="charting.chart.bubbleMinimumSize">10</option> <option name="charting.chart.bubbleSizeBy">area</option> <option name="charting.chart.nullValueMode">gaps</option> <option name="charting.chart.showDataLabels">all</option> <option name="charting.chart.sliceCollapsingThreshold">0.01</option> <option name="charting.chart.stackMode">default</option> <option name="charting.chart.style">shiny</option> <option name="charting.drilldown">all</option> <option name="charting.layout.splitSeries">0</option> <option name="charting.layout.splitSeries.allowIndependentYRanges">0</option> <option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option> <option name="charting.legend.placement">none</option> </chart> </panel> </row> <row> <panel> <chart> <title>Click Event Timeline</title> <search> <query>index=email_na sourcetype="proofpoint_tap" eventType=click* classification!=NULL | timechart count as Count by classification | rename classification as Classification</query> <earliest>$time.earliest$</earliest> <latest>$time.latest$</latest> </search> <option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option> <option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option> <option name="charting.axisTitleX.visibility">visible</option> <option name="charting.axisTitleY.visibility">visible</option> <option name="charting.axisTitleY2.visibility">visible</option> <option name="charting.axisX.scale">linear</option> <option name="charting.axisY.scale">linear</option> <option name="charting.axisY2.enabled">0</option> <option name="charting.axisY2.scale">inherit</option> <option name="charting.chart">column</option> <option name="charting.chart.bubbleMaximumSize">50</option> <option name="charting.chart.bubbleMinimumSize">10</option> <option name="charting.chart.bubbleSizeBy">area</option> <option name="charting.chart.nullValueMode">gaps</option> <option name="charting.chart.showDataLabels">all</option> <option name="charting.chart.sliceCollapsingThreshold">0.01</option> <option name="charting.chart.stackMode">default</option> <option name="charting.chart.style">shiny</option> <option name="charting.drilldown">all</option> <option name="charting.layout.splitSeries">0</option> <option name="charting.layout.splitSeries.allowIndependentYRanges">0</option> <option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option> <option name="charting.legend.placement">right</option> </chart> </panel> <panel> <chart> <title>Click Event Types</title> <search> <query>index=email_na sourcetype="proofpoint_tap" eventType=click* classification!=NULL | chart count as Count by classification | rename classification as Classification</query> <earliest>$time.earliest$</earliest> <latest>$time.latest$</latest> </search> <option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option> <option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option> <option name="charting.axisTitleX.visibility">visible</option> <option name="charting.axisTitleY.visibility">visible</option> <option name="charting.axisTitleY2.visibility">visible</option> <option name="charting.axisX.scale">linear</option> <option name="charting.axisY.scale">linear</option> <option name="charting.axisY2.enabled">0</option> <option name="charting.axisY2.scale">inherit</option> <option name="charting.chart">bar</option> <option name="charting.chart.bubbleMaximumSize">50</option> <option name="charting.chart.bubbleMinimumSize">10</option> <option name="charting.chart.bubbleSizeBy">area</option> <option name="charting.chart.nullValueMode">gaps</option> <option name="charting.chart.showDataLabels">all</option> <option name="charting.chart.sliceCollapsingThreshold">0.01</option> <option name="charting.chart.stackMode">default</option> <option name="charting.chart.style">shiny</option> <option name="charting.drilldown">all</option> <option name="charting.layout.splitSeries">0</option> <option name="charting.layout.splitSeries.allowIndependentYRanges">0</option> <option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option> <option name="charting.legend.placement">none</option> </chart> </panel> </row> <row> <panel> <table> <title>Clicked SpamType Timeline</title> <search> <query>index=email_na sourcetype="proofpoint_tap" eventType=click* | eval spamType=if(malwareScore > 0, "Malware", if(phishScore > 0,"Phishing", if(spamScore > 0, "Spam", if(imposterScore > 0, "imposter", "notSpam"))))| timechart count as Count by spamType | rename "spamType" as "Spam Type"</query> <earliest>$time.earliest$</earliest> <latest>$time.latest$</latest> </search> </table> </panel> <panel> <chart> <title>Click Spam Types for Today</title> <search> <query>index=email_na sourcetype="proofpoint_tap" eventType=click* | eval spamType=if(malwareScore > 0, "Malware", if(phishScore > 0,"Phishing", if(spamScore > 0, "Spam", if(imposterScore > 0, "imposter", "notSpam"))))| top limit=20 spamType | rename "spamType" as "Spam Type" count as Count</query> <earliest>$time.earliest$</earliest> <latest>$time.latest$</latest> </search> <option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option> <option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option> <option name="charting.axisTitleX.visibility">visible</option> <option name="charting.axisTitleY.visibility">visible</option> <option name="charting.axisTitleY2.visibility">visible</option> <option name="charting.axisX.scale">linear</option> <option name="charting.axisY.scale">linear</option> <option name="charting.axisY2.enabled">0</option> <option name="charting.axisY2.scale">inherit</option> <option name="charting.chart">bar</option> <option name="charting.chart.bubbleMaximumSize">50</option> <option name="charting.chart.bubbleMinimumSize">10</option> <option name="charting.chart.bubbleSizeBy">area</option> <option name="charting.chart.nullValueMode">gaps</option> <option name="charting.chart.showDataLabels">all</option> <option name="charting.chart.sliceCollapsingThreshold">0.01</option> <option name="charting.chart.stackMode">default</option> <option name="charting.chart.style">shiny</option> <option name="charting.drilldown">all</option> <option name="charting.layout.splitSeries">0</option> <option name="charting.layout.splitSeries.allowIndependentYRanges">0</option> <option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option> <option name="charting.legend.placement">none</option> </chart> </panel> </row> </form> |
REST API: Table all Splunk User Email Addresses
The following simple Splunk query will put all Splunk User accounts with an email address into a panel for copy and paste purposes (such as copying all email addresses to send in an email). I’ve added a semi colon delimiter in order to literally be copy and paste into an application such as Microsoft Outlook. […]
Bucket Status Dashboard
Shows status of buckets per indexer host, when they rolled from warm to cold, and cold to frozen. Gives a timechart and table of each, as well as detailed bucket names per index & host.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 |
<form> <label>Bucket Status</label> <fieldset submitButton="false"> <input type="time" token="field1"> <label></label> <default> <earliest>-24h@h</earliest> <latest>now</latest> </default> </input> <input type="multiselect" token="hostpicker" searchWhenChanged="true"> <label>Which Host</label> <choice value="*">All</choice> <default>*</default> <initialValue>*</initialValue> <fieldForLabel>host</fieldForLabel> <fieldForValue>host</fieldForValue> <search> <query>index=_internal sourcetype=splunkd component=BucketMover warm_to_cold idx!="_i*" idx!="_a*" Role=Indexer | stats count by host | fields - count</query> <earliest>-24h@h</earliest> <latest>now</latest> </search> <delimiter> OR host=</delimiter> </input> <input type="multiselect" token="idx_picker" searchWhenChanged="true"> <label>Which Index</label> <choice value="*">All</choice> <default>*</default> <initialValue>*</initialValue> <fieldForLabel>idx_name</fieldForLabel> <fieldForValue>idx_name</fieldForValue> <search> <query>index=_internal sourcetype=splunkd component=BucketMover "*starting warm_to_cold*" OR "*freeze succeeded*" | rex field=event_message "indexes\/(?<idx_name>.+?(?=\/))" | stats count by idx_name | fields - count</query> <earliest>-24h@h</earliest> <latest>now</latest> </search> <delimiter> OR idx_name=</delimiter> </input> </fieldset> <row> <panel> <title>Warm to Cold Timechart</title> <chart> <search> <query>index=_internal sourcetype=splunkd component=BucketMover "*starting warm_to_cold*" host=$hostpicker$ | rex field=event_message "indexes\/(?<idx_name>.+?(?=\/))" | search idx_name=$idx_picker$ NOT idx_name="_*" | timechart count by idx_name</query> <earliest>$field1.earliest$</earliest> <latest>$field1.latest$</latest> <sampleRatio>1</sampleRatio> </search> <option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option> <option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option> <option name="charting.axisTitleX.visibility">visible</option> <option name="charting.axisTitleY.visibility">visible</option> <option name="charting.axisTitleY2.visibility">visible</option> <option name="charting.axisX.abbreviation">none</option> <option name="charting.axisX.scale">linear</option> <option name="charting.axisY.abbreviation">none</option> <option name="charting.axisY.scale">log</option> <option name="charting.axisY2.abbreviation">none</option> <option name="charting.axisY2.enabled">0</option> <option name="charting.axisY2.scale">inherit</option> <option name="charting.chart">line</option> <option name="charting.chart.bubbleMaximumSize">50</option> <option name="charting.chart.bubbleMinimumSize">10</option> <option name="charting.chart.bubbleSizeBy">area</option> <option name="charting.chart.nullValueMode">gaps</option> <option name="charting.chart.showDataLabels">none</option> <option name="charting.chart.sliceCollapsingThreshold">0.01</option> <option name="charting.chart.stackMode">default</option> <option name="charting.chart.style">shiny</option> <option name="charting.drilldown">none</option> <option name="charting.layout.splitSeries">0</option> <option name="charting.layout.splitSeries.allowIndependentYRanges">0</option> <option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option> <option name="charting.legend.mode">standard</option> <option name="charting.legend.placement">right</option> <option name="charting.lineWidth">2</option> <option name="refresh.display">progressbar</option> <option name="trellis.enabled">0</option> <option name="trellis.scales.shared">1</option> <option name="trellis.size">medium</option> </chart> </panel> <panel> <title>Cold to Frozen Timechart</title> <chart> <search> <query>index=_internal sourcetype=splunkd component=BucketMover "*will attempt to freeze*" host=$hostpicker$ | rex field=event_message "indexes\/(?<idx_name>.+?(?=\/))" | search idx_name=$idx_picker$ NOT idx_name="_*" | timechart count by idx_name</query> <earliest>$field1.earliest$</earliest> <latest>$field1.latest$</latest> <sampleRatio>1</sampleRatio> </search> <option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option> <option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option> <option name="charting.axisTitleX.visibility">visible</option> <option name="charting.axisTitleY.visibility">visible</option> <option name="charting.axisTitleY2.visibility">visible</option> <option name="charting.axisX.abbreviation">none</option> <option name="charting.axisX.scale">linear</option> <option name="charting.axisY.abbreviation">none</option> <option name="charting.axisY.scale">linear</option> <option name="charting.axisY2.abbreviation">none</option> <option name="charting.axisY2.enabled">0</option> <option name="charting.axisY2.scale">inherit</option> <option name="charting.chart">line</option> <option name="charting.chart.bubbleMaximumSize">50</option> <option name="charting.chart.bubbleMinimumSize">10</option> <option name="charting.chart.bubbleSizeBy">area</option> <option name="charting.chart.nullValueMode">gaps</option> <option name="charting.chart.showDataLabels">none</option> <option name="charting.chart.sliceCollapsingThreshold">0.01</option> <option name="charting.chart.stackMode">default</option> <option name="charting.chart.style">shiny</option> <option name="charting.drilldown">none</option> <option name="charting.layout.splitSeries">0</option> <option name="charting.layout.splitSeries.allowIndependentYRanges">0</option> <option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option> <option name="charting.legend.mode">standard</option> <option name="charting.legend.placement">right</option> <option name="charting.lineWidth">2</option> <option name="refresh.display">progressbar</option> <option name="trellis.enabled">0</option> <option name="trellis.scales.shared">1</option> <option name="trellis.size">medium</option> </chart> </panel> </row> <row> <panel> <title>Buckets moving from warm to cold</title> <table> <search> <query>index=_internal sourcetype=splunkd component=BucketMover warm_to_cold idx!="_i*" idx!="_a*" host=$hostpicker$ | rex field=event_message "indexes\/(?<idx_name>.+?(?=\/))" | search idx_name=$idx_picker$ NOT idx_name="_*" | stats count by idx_name | sort - count</query> <earliest>$field1.earliest$</earliest> <latest>$field1.latest$</latest> <sampleRatio>1</sampleRatio> </search> <option name="count">10</option> <option name="dataOverlayMode">none</option> <option name="drilldown">none</option> <option name="percentagesRow">false</option> <option name="refresh.display">progressbar</option> <option name="rowNumbers">false</option> <option name="totalsRow">false</option> <option name="wrap">true</option> </table> </panel> <panel> <title>Buckets rolling to Frozen</title> <table> <search> <query>index=_internal sourcetype=splunkd component=BucketMover candidate!="*_i*" candidate!="*_a*" host=$hostpicker$ "*will attempt to freeze*" | rex field=event_message "indexes\/(?<idx_name>.+?(?=\/))" | search idx_name=$idx_picker$ NOT idx_name="_*" | stats count by idx_name | sort - count</query> <earliest>$field1.earliest$</earliest> <latest>$field1.latest$</latest> <sampleRatio>1</sampleRatio> </search> <option name="count">10</option> <option name="dataOverlayMode">none</option> <option name="drilldown">none</option> <option name="percentagesRow">false</option> <option name="refresh.display">progressbar</option> <option name="rowNumbers">false</option> <option name="totalsRow">false</option> <option name="wrap">true</option> </table> </panel> </row> <row> <panel> <title>Index, Host and Bucket</title> <table> <title>cold to frozen uses bkt, warm to cold uses bucket</title> <search> <query>index=_internal sourcetype=splunkd component=BucketMover "*starting warm_to_cold*" OR "*freeze succeeded*" host=$hostpicker$ | rex field=event_message "indexes\/(?<idx_name>.+?(?=\/))" | fillnull value=NULL | search idx_name=$idx_picker$ NOT idx_name="_*" | eval Message=if(like(event_message, "%warm_to_cold%"), "Warm to Cold", "Cold to Frozen") | stats count by idx_name bucket bkt host Message| fields - count</query> <earliest>$field1.earliest$</earliest> <latest>$field1.latest$</latest> <sampleRatio>1</sampleRatio> </search> <option name="count">25</option> <option name="dataOverlayMode">none</option> <option name="drilldown">none</option> <option name="percentagesRow">false</option> <option name="rowNumbers">false</option> <option name="totalsRow">false</option> <option name="wrap">true</option> </table> </panel> </row> </form> |
Detect Dying Sourcetypes
This alert is used for looking at a prior dataset of indexes and sourcetypes reporting over time, and then involves pairing to a closer, temporal dataset. Appending the results allows you to view sourcetypes that have stopped reporting, but existed in the prior period.
1 2 3 4 5 |
| tstats count where earliest=-90d latest=-60d index=proxies_na by _time sourcetype span=1d | append [ | tstats count where earliest=-30d latest=now index=proxies_na by _time sourcetype span=1d | where count=0 ] | timechart span=1d values(count) AS count by sourcetype | streamstats avg(count) as avgCount by sourcetype |
Alerts in a Panel with Drilldown
A quick dashboard panel you can plop anywhere and get a view of alerts that have recently fired, including a drilldown based on the SID of the fired alert.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
<row> <panel> <table> <title>Alerts Fired</title> <search> <query>index=_audit action=alert_fired |rename ss_name AS Alert |stats latest(_time) AS "Last Fired" count AS "Times Fired" sparkline AS "Alerts in the Last 72 Hours" first(sid) AS sid by Alert |convert ctime("Last Fired")</query> <earliest>-72h</earliest> <latest>now</latest> <refresh>90s</refresh> </search> <fields>Alert, "Last Fired", "Times Fired", "Alerts in the Last 72 Hours"</fields> <option name="wrap">true</option> <option name="rowNumbers">false</option> <option name="dataOverlayMode">heatmap</option> <option name="count">10</option> <option name="link.inspectSearch.visible">false</option> <option name="link.openSearch.visible">false</option> <format field="Alerts in the Last 72 Hours" type="sparkline"> <option name="type">bar</option> <option name="barColor">green</option> <option name="colorMap"> <option name="1:3">navy</option> <option name="3:7">orange</option> <option name="8:">red</option> </option> </format> <drilldown target="_blank"> <link>search?sid=$row.sid$</link> </drilldown> <option name="drilldown">cell</option> </table> <html> <p> Location specific instructions in html </p> </html> </panel> </row> |
Triggered Alert Analytics
Primary Dashboards Contains alert analytics for both triggered alerts and saved searches. Please replace $name$ with the saved search naming convention you utilize (ie. 0001 – AlertName). You will need an outputlookup to generate the bottom two tables; it will be based on the query that generates the second table in the dashboard.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
<form theme="dark"> <label>Triggered Alert Analytics</label> <description>Metrics tracker for triggered alerts.</description> <fieldset submitButton="false"></fieldset> <row> <panel> <title>alert_fired count for Triggered Alerts</title> <input type="time" token="upperTime" searchWhenChanged="true"> <label></label> <default> <earliest>-7d@h</earliest> <latest>now</latest> </default> </input> <chart> <title>Dashboard for counting per-alert totals, contingent on alerts having the 'Alert Action: Add to Triggered Alerts'</title> <search> <query>index=_audit action=alert_fired ss_app=* ss_name="$name$" | timechart span=1d sum(triggered_alerts) by ss_name useother=f limit=0 | sort -count</query> <earliest>$upperTime.earliest$</earliest> <latest>$upperTime.latest$</latest> <sampleRatio>1</sampleRatio> </search> <option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option> <option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option> <option name="charting.axisTitleX.visibility">visible</option> <option name="charting.axisTitleY.visibility">visible</option> <option name="charting.axisTitleY2.visibility">visible</option> <option name="charting.axisX.abbreviation">none</option> <option name="charting.axisX.scale">linear</option> <option name="charting.axisY.abbreviation">none</option> <option name="charting.axisY.scale">log</option> <option name="charting.axisY2.abbreviation">none</option> <option name="charting.axisY2.enabled">0</option> <option name="charting.axisY2.scale">inherit</option> <option name="charting.chart">line</option> <option name="charting.chart.bubbleMaximumSize">50</option> <option name="charting.chart.bubbleMinimumSize">10</option> <option name="charting.chart.bubbleSizeBy">area</option> <option name="charting.chart.nullValueMode">gaps</option> <option name="charting.chart.showDataLabels">none</option> <option name="charting.chart.sliceCollapsingThreshold">0.01</option> <option name="charting.chart.stackMode">default</option> <option name="charting.chart.style">shiny</option> <option name="charting.drilldown">none</option> <option name="charting.layout.splitSeries">0</option> <option name="charting.layout.splitSeries.allowIndependentYRanges">0</option> <option name="charting.legend.labelStyle.overflowMode">ellipsisMiddle</option> <option name="charting.legend.mode">standard</option> <option name="charting.legend.placement">right</option> <option name="charting.lineWidth">2</option> <option name="refresh.display">preview</option> <option name="trellis.enabled">0</option> <option name="trellis.scales.shared">1</option> <option name="trellis.size">medium</option> <option name="trellis.splitBy">ss_name</option> </chart> </panel> </row> <row> <panel> <title>All Modified Alerts (-7d)</title> <input type="time" token="lowerTime" searchWhenChanged="true"> <label></label> <default> <earliest>-7d@h</earliest> <latest>now</latest> </default> </input> <table> <search> <query>| rest /servicesNS/-/-/saved/searches | search title="$name$" | rename dispatch.earliest_time AS "frequency", title AS "title", eai:acl.app AS "app", next_scheduled_time AS "nextRunTime", search AS "query", updated AS "lastUpdated", action.email.to AS "emailTo", action.email.cc AS "emailCC", action.email.subject AS "emailSubject", alert.severity AS "SEV" | eval severity=case(SEV == "5", "Critical-5", SEV == "4", "High-4",SEV == "3", "Warning-3",SEV == "2", "Low-2",SEV == "1", "Info-1") | table title lastUpdated, nextRunTime, emailTo action.lookup.filename, query, severity | fillnull value="" | sort -lastUpdated</query> <earliest>-24h@h</earliest> <latest>now</latest> <sampleRatio>1</sampleRatio> </search> <option name="count">10</option> <option name="dataOverlayMode">none</option> <option name="drilldown">cell</option> <option name="percentagesRow">false</option> <option name="refresh.display">preview</option> <option name="rowNumbers">false</option> <option name="totalsRow">true</option> <option name="wrap">false</option> </table> </panel> </row> <row> <panel> <table> <title>Daily Alert Modification Report</title> <search ref="Daily Alert Modification Report"></search> <option name="drilldown">none</option> </table> </panel> <panel> <table> <title>From 'all_modified_alerts.csv'</title> <search> <query>| from lookup:all_modified_alerts.csv</query> <earliest>0</earliest> <latest></latest> </search> <option name="count">1</option> <option name="drilldown">cell</option> <option name="totalsRow">true</option> </table> </panel> </row> </form> |
Report […]
F5 SL ASM iRule Parser for Hosted Deployments
1 2 3 4 5 |
sourcetype=f5:silverline:asm irule=* vs_ip=* | rex "(?<log>.*)" | eval log_stripped = replace(log, "\\\\","") | rex field=log_stripped "data=\"(?<data_section>.*?)\", irule=" | spath input=data_section |
Groundspeed Violation/Improbable Access
Oftentimes we are required to determine impossible or improbably access events. Typically, this is a relatively simple thing to do in a modern SIEM, however Splunk, without ESS, does not have a “great” way to handle this type of temporal correlation aside from appends or joins back to the original data. I constructed the following […]
F5 BigIP Brute Force and Session Abuse
Multiple Users with Authentications from Singular, non-Whitelisted IP Basically I needed a way to determine if a series of users are connecting from a singular IP. This is particular useful during COVID-19 WFH constraints. The search is intended to look at the VPN index for a new session initiation, excluding all RFC1918 traffic as a […]
CrowdStrike Audit Event Correlation
Summary CrowdStrike creates logs in JSON format and sends 2 different datasets to the same sourcetype; security events from their detection tools and audit events from their management tool. These audit tools contain analyst data about when they mark events as true positive, and withing CrowdStrike these are joined with the security event itself. To […]
Listing incident review and the closing comments
1 2 3 4 5 |
index=_audit sourcetype="incident_review" | table rule_name comment status | rename rule_name as "Notable Event" comment as "Closing Comment" status as Status | eval Status=if(Status=5,"Closed",if(Status=2,"In Progress","Not assigned")) | dedup "Closing Comment" |
Investigate by MAC, IP all VPN authentications through CISCO_ISE
Helps to investigate authentications through CISCO_ISE device. This identifies who logs in, the MAC address and IP for any use cases
1 2 3 4 5 6 7 |
index=<your cisco index> "<your IP>" |rex field="cisco_av_pair" "mdm-tlv=device-mac=(?<MAC_ID>\w+-\w+-\w+-\w+-\w+-\w+)" |rex field="cisco_av_pair" "mdm-tlv=device-platform=(?<OS>\w+)" |rex field=_raw "(?<IP><IP regex>)" |iplocation IP |stats c sum(Acct_Input_Packets) as Packets_In sum(Acct_Output_Packets) as Packets_Out by _time User_Name Framed_Protocol src_mac City Country Region IP MAC_ID OS Acct_Status_Type |rename _time as Time RequestLatency as LoadTime Acct_Status_Type as Status IP as <your choice> |convert ctime(Time) |fields + Time User_Name MAC_ID OS "SourceIP - DestIP" City Country Region Framed_Protocol Status Packets_Out Packets_In |
Investigate an IP through Palo Alto Logs
1 2 3 4 |
index= <strong><your palo alto index> <IP you want to investigate></strong> |stats c sum(bytes) as Bytes_Out by _time user application action dest_ip dest_location src_ip client_ip client_location session_end_reason "app:able_to_transfer_file" "app:has_known_vulnerability" "app:prone_to_misuse" "app:used_by_malware" "app:evasive" |fields + _time user application action dest_ip dest_location client_ip client_location Bytes_Out session_end_reason "app:able_to_transfer_file" "app:has_known_vulnerability" "app:prone_to_misuse" "app:used_by_malware" "app:evasive" |rename client_ip as SourceIP |fields - user session_end_reason "app:prone_to_misuse" "app:used_by_malware" "app:evasive" dest_ip |