Wednesday, June 22, 2016

Splunk Dashboard - Linux Security

Dashboard that can be used for any linux platform logs to monitor for the following notable security events. Change the index names and copy the dashboard to a view. Required fields are extracted within the panels.


  • Successful Authentication (Accepted Password, Acespted Publickey and Session Open)
  • Failed Authentication (Authentication Failure, Failed Password, Failed publickey)
  • Session Log-on/Log-off
  • Sudo actions
  • Account Management (Account Creation or Deletion or Psssword Change)
  • Critical, Emergency and Alert Messages
  • Warning Message
  • Occurence of Failed / Failure related messages


Link for dark_2.css file - http://www.brainfold.net/2016/04/splunk-dashboards-looks-more-beautiful.html

### stylesheets needs to be uplpaded to the folder :-etc/app_name/appserver/static 
 
001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
019
020
021
022
023
024
025
026
027
028
029
030
031
032
033
034
035
036
037
038
039
040
041
042
043
044
045
046
047
048
049
050
051
052
053
054
055
056
057
058
059
060
061
062
063
064
065
066
067
068
069
070
071
072
073
074
075
076
077
078
079
080
081
082
083
084
085
086
087
088
089
090
091
092
093
094
095
096
097
098
099
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
<form stylesheet="custom_decorations.css, dark_2.css">
  <label>Linux Platform Montior</label>
  <description>Linux Dashboard for notable platform related events</description>
 
#### change the default time as required.
  <fieldset submitButton="true" autoRun="true">
    <input type="time" token="field1" searchWhenChanged="true">
      <label></label>
      <default>
        <earliest>-24h@h</earliest>
        <latest>-5m@m</latest>
      </default>
    </input>
 
#### change the index_1, index_2 and so on to as per the real index names as per your environment.
    <input type="dropdown" token="index">
      <label></label>
      <choice value="index_1">Index Name 1</choice>
      <choice value="index_2">Index Name 2</choice>
      <choice value="index_3">Index Name 3</choice>
      <default>index_*</default>
    </input>
  </fieldset>
 
   
  <row>
    <panel>
      <html>       
        <center>
          <h1 style="background-color:grey">
            <font size="3" color="white">
              <b>Linux Authentication</b>
            </font>
          </h1>
        </center>
      </html>
    </panel>
  </row>
  <row>
    <panel>
      <chart>
        <title>Successful Authentication (Accepted Password, Acespted Publickey and Session Open)</title>
        <search>
          <query>index=$index$   sourcetype="linux_secure"  ("*accepted password*" OR "accepted publickey*" OR "*session open*" )  | rex field=_raw "^[^\)\n]*\):\s+(?P<message>.+)" | rex field=_raw "^[^\]\n]*\]:\s+(?P<Message>\w+\s+\w+\s+\w+\s+\d+\s+\w+\s+\d+\.\d+\.\d+\.\d+\s+\w+\s+\d+\s+\w+)" | rex field=_raw "^[^\]\n]*\]:\s+(?P<message_2>.+)" | eval message = coalesce(message,Message, message_2)  | eval issue=case(message like "%Accepted password%", "Accepted Password", message like "%Accepted publickey%", "Accepted Publickey" , message like "%session open%","Session Open") | bin _time span=1h | timechart   count by issue usenull=f useother=f</query>
          <earliest>$field1.earliest$</earliest>
          <latest>$field1.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">minmax</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">ellipsisEnd</option>
        <option name="charting.legend.placement">bottom</option>
        <option name="charting.axisTitleY.text">Count</option>
        <option name="charting.chart.overlayFields">"Session Open"</option>
      </chart>
    </panel>
    <panel>
      <chart>
        <title>Failed Authentication (Authentication Failure, Failed Password, Failed publickey)</title>
        <search>
          <query>index=$index$    sourcetype="linux_secure"  ("authentication failure" OR "*failed password*" OR "invalid user") | rex field=_raw "^(?:[^ \n]* ){6}(?P<message_1>[^;]+)" | rex field=_raw "^[^\]\n]*\]:\s+(?P<message_2>.+)" | eval message = coalesce(message_1,message_2) | eval notable=case(message like "%Invalid user%", "Invalid User", message like "%Failed password%", "Failed Password" , message like "%authentication failure%","Authentication Failure")|  bin _time span=1h | timechart   count by notable usenull=f useother=f</query>
          <earliest>$field1.earliest$</earliest>
          <latest>$field1.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">1</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">minmax</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">ellipsisEnd</option>
        <option name="charting.legend.placement">bottom</option>
        <option name="charting.axisTitleY.text">Count</option>
        <option name="charting.chart.overlayFields">"Authentication Failure"</option>
      </chart>
    </panel>
    <panel>
      <chart>
        <title>Session Log-on/Log-off</title>
        <search>
          <query>index=$index$      sourcetype="linux_secure"  ("session closed" OR "session opened") | rex field=_raw "^[^\)\n]*\):\s+(?P<message>.+)" | eval notable=case(message like "%session closed%", "User log-off", message like "%session opened%", "User log-in" )  | bin _time span=1h | timechart   count by notable usenull=f useother=f</query>
          <earliest>$field1.earliest$</earliest>
          <latest>$field1.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">1</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">minmax</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">ellipsisEnd</option>
        <option name="charting.legend.placement">bottom</option>
        <option name="charting.chart.overlayFields">"User log-in"</option>
      </chart>
    </panel>
  </row>
  <row>
    <panel>
      <html>       
        <center>
          <h1 style="background-color:grey">
            <font size="3" color="white">
              <b>Linux Privileged Operation </b>
            </font>
          </h1>
        </center>
      </html>
    </panel>
  </row>
  <row>
    <panel>
      <chart>
        <title>Sudo actions</title>
        <search>
          <query>index=$index$   sourcetype=linux_* ("sudo* COMMAND*" OR "Failed su*") | rex field=_raw "^(?:[^ \n]* ){4}(?P<message>.+)"  | eval issue=case(message like "%COMMAND%", "Privileged Command Execution", 1=1 , "Other")|timechart  dc(PWD) by issue usenull=f useother=f</query>
          <earliest>$field1.earliest$</earliest>
          <latest>$field1.latest$</latest>
        </search>
        <option name="wrap">true</option>
        <option name="rowNumbers">false</option>
        <option name="wrap">true</option>
        <option name="rowNumbers">false</option>
        <option name="dataOverlayMode">highlow</option>
        <option name="count">10</option>
        <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">area</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">minmax</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">ellipsisEnd</option>
        <option name="charting.legend.placement">bottom</option>
        <option name="charting.axisTitleY.text">Unique User Count</option>
        <option name="charting.axisLabelsY.majorUnit">2</option>
        <option name="charting.axisY.minimumNumber">0</option>
      </chart>
    </panel>
    <panel>
      <chart>
        <title>Account Management (Account Creation or Deletion or Psssword Change)</title>
        <search>
          <query>index=$index$    sourcetype="linux_secure"  ("password changed"  OR  "delete user" OR "new user") | rex field=_raw "^[^\)\n]*\):\s+(?P<message>.+)" | rex field=_raw "^[^\]\n]*\]:\s+(?P<message_2>.+)" | eval message = coalesce(message,Message, message_2) | eval notable=case(message like "%password changed%", "Password Changed", message like "%delete user%", "Delete User" , message like "%new user%","New User") | timechart   count by notable usenull=f useother=f</query>
          <earliest>$field1.earliest$</earliest>
          <latest>$field1.latest$</latest>
        </search>
        <option name="charting.chart">area</option>
        <option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option>
        <option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option>
        <option name="charting.axisLabelsY.majorUnit">5</option>
        <option name="charting.axisTitleX.visibility">visible</option>
        <option name="charting.axisTitleY.text">Count</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.minimumNumber">0</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.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">minmax</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">ellipsisEnd</option>
        <option name="charting.legend.placement">bottom</option>
        <option name="charting.chart.overlayFields">"Password Changed"</option>
      </chart>
    </panel>
  </row>
  <row>
    <panel>
      <html>       
        <center>
          <h1 style="background-color:grey">
            <font size="3" color="white">
              <b> Notable Severity Messages (Critical, Emergency, Alert, Warning) </b>
            </font>
          </h1>
        </center>
      </html>
    </panel>
  </row>
  <row>
    <panel>
      <chart>
        <title>Critical, Emergency and Alert Messages</title>
        <search>
          <query>index=$index$   sourcetype="linux_*"  "crit" OR "emerg" OR "alert"  | rex field=_raw "^[^\]\n]*\][:| ]\s+(?P<message>.*)"  | timechart count by product usenull=f useother=f</query>
          <earliest>$field1.earliest$</earliest>
          <latest>$field1.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">minmax</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>Warning Message</title>
        <search>
          <query>index=$index$   sourcetype="linux_*"  "warning"  | timechart  count  by product usenull=f useother=f</query>
          <earliest>$field1.earliest$</earliest>
          <latest>$field1.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">area</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">minmax</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">ellipsisEnd</option>
        <option name="charting.legend.placement">bottom</option>
      </chart>
    </panel>
  </row>
  <row>
    <panel>
      <chart>
        <title>Occurence of Failed / Failure related messages</title>
        <search>
          <query>index=$index$   sourcetype="linux_*"  "*failed*" OR "*failure*"  | rex field=_raw "^[^\]\n]*\][:| ]\s+(?P<message>.*)" | timechart count by product usenull=f useother=f</query>
          <earliest>$field1.earliest$</earliest>
          <latest>$field1.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">area</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">minmax</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">ellipsisEnd</option>
        <option name="charting.legend.placement">bottom</option>
      </chart>
    </panel>
  </row>
</form>
 
 
<form stylesheet="custom_decorations.css, dark_2.css">
  <label>Linux Platform Montior</label>
  <description>Linux Dashboard for notable platform related events</description>

#### change the default time as required. 
  <fieldset submitButton="true" autoRun="true">
    <input type="time" token="field1" searchWhenChanged="true">
      <label></label>
      <default>
        <earliest>-24h@h</earliest>
        <latest>-5m@m</latest>
      </default>
    </input>

#### change the index_1, index_2 and so on to as per the real index names as per your environment. 
    <input type="dropdown" token="index">
      <label></label>
      <choice value="index_1">Index Name 1</choice>
      <choice value="index_2">Index Name 2</choice>
      <choice value="index_3">Index Name 3</choice>
      <default>index_*</default>
    </input>
  </fieldset>

  
  <row>
    <panel>
      <html>        
        <center>
          <h1 style="background-color:grey">
            <font size="3" color="white">
              <b>Linux Authentication</b>
            </font>
          </h1>
        </center>
      </html>
    </panel>
  </row>
  <row>
    <panel>
      <chart>
        <title>Successful Authentication (Accepted Password, Acespted Publickey and Session Open)</title>
        <search>
          <query>index=$index$   sourcetype="linux_secure"  ("*accepted password*" OR "accepted publickey*" OR "*session open*" )  | rex field=_raw "^[^\)\n]*\):\s+(?P&lt;message&gt;.+)" | rex field=_raw "^[^\]\n]*\]:\s+(?P&lt;Message&gt;\w+\s+\w+\s+\w+\s+\d+\s+\w+\s+\d+\.\d+\.\d+\.\d+\s+\w+\s+\d+\s+\w+)" | rex field=_raw "^[^\]\n]*\]:\s+(?P&lt;message_2&gt;.+)" | eval message = coalesce(message,Message, message_2)  | eval issue=case(message like "%Accepted password%", "Accepted Password", message like "%Accepted publickey%", "Accepted Publickey" , message like "%session open%","Session Open") | bin _time span=1h | timechart   count by issue usenull=f useother=f</query>
          <earliest>$field1.earliest$</earliest>
          <latest>$field1.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">minmax</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">ellipsisEnd</option>
        <option name="charting.legend.placement">bottom</option>
        <option name="charting.axisTitleY.text">Count</option>
        <option name="charting.chart.overlayFields">"Session Open"</option>
      </chart>
    </panel>
    <panel>
      <chart>
        <title>Failed Authentication (Authentication Failure, Failed Password, Failed publickey)</title>
        <search>
          <query>index=$index$    sourcetype="linux_secure"  ("authentication failure" OR "*failed password*" OR "invalid user") | rex field=_raw "^(?:[^ \n]* ){6}(?P&lt;message_1&gt;[^;]+)" | rex field=_raw "^[^\]\n]*\]:\s+(?P&lt;message_2&gt;.+)" | eval message = coalesce(message_1,message_2) | eval notable=case(message like "%Invalid user%", "Invalid User", message like "%Failed password%", "Failed Password" , message like "%authentication failure%","Authentication Failure")|  bin _time span=1h | timechart   count by notable usenull=f useother=f</query>
          <earliest>$field1.earliest$</earliest>
          <latest>$field1.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">1</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">minmax</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">ellipsisEnd</option>
        <option name="charting.legend.placement">bottom</option>
        <option name="charting.axisTitleY.text">Count</option>
        <option name="charting.chart.overlayFields">"Authentication Failure"</option>
      </chart>
    </panel>
    <panel>
      <chart>
        <title>Session Log-on/Log-off</title>
        <search>
          <query>index=$index$      sourcetype="linux_secure"  ("session closed" OR "session opened") | rex field=_raw "^[^\)\n]*\):\s+(?P&lt;message&gt;.+)" | eval notable=case(message like "%session closed%", "User log-off", message like "%session opened%", "User log-in" )  | bin _time span=1h | timechart   count by notable usenull=f useother=f</query>
          <earliest>$field1.earliest$</earliest>
          <latest>$field1.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">1</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">minmax</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">ellipsisEnd</option>
        <option name="charting.legend.placement">bottom</option>
        <option name="charting.chart.overlayFields">"User log-in"</option>
      </chart>
    </panel>
  </row>
  <row>
    <panel>
      <html>        
        <center>
          <h1 style="background-color:grey">
            <font size="3" color="white">
              <b>Linux Privileged Operation </b>
            </font>
          </h1>
        </center>
      </html>
    </panel>
  </row>
  <row>
    <panel>
      <chart>
        <title>Sudo actions</title>
        <search>
          <query>index=$index$   sourcetype=linux_* ("sudo* COMMAND*" OR "Failed su*") | rex field=_raw "^(?:[^ \n]* ){4}(?P&lt;message&gt;.+)"  | eval issue=case(message like "%COMMAND%", "Privileged Command Execution", 1=1 , "Other")|timechart  dc(PWD) by issue usenull=f useother=f</query>
          <earliest>$field1.earliest$</earliest>
          <latest>$field1.latest$</latest>
        </search>
        <option name="wrap">true</option>
        <option name="rowNumbers">false</option>
        <option name="wrap">true</option>
        <option name="rowNumbers">false</option>
        <option name="dataOverlayMode">highlow</option>
        <option name="count">10</option>
        <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">area</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">minmax</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">ellipsisEnd</option>
        <option name="charting.legend.placement">bottom</option>
        <option name="charting.axisTitleY.text">Unique User Count</option>
        <option name="charting.axisLabelsY.majorUnit">2</option>
        <option name="charting.axisY.minimumNumber">0</option>
      </chart>
    </panel>
    <panel>
      <chart>
        <title>Account Management (Account Creation or Deletion or Psssword Change)</title>
        <search>
          <query>index=$index$    sourcetype="linux_secure"  ("password changed"  OR  "delete user" OR "new user") | rex field=_raw "^[^\)\n]*\):\s+(?P&lt;message&gt;.+)" | rex field=_raw "^[^\]\n]*\]:\s+(?P&lt;message_2&gt;.+)" | eval message = coalesce(message,Message, message_2) | eval notable=case(message like "%password changed%", "Password Changed", message like "%delete user%", "Delete User" , message like "%new user%","New User") | timechart   count by notable usenull=f useother=f</query>
          <earliest>$field1.earliest$</earliest>
          <latest>$field1.latest$</latest>
        </search>
        <option name="charting.chart">area</option>
        <option name="charting.axisLabelsX.majorLabelStyle.overflowMode">ellipsisNone</option>
        <option name="charting.axisLabelsX.majorLabelStyle.rotation">0</option>
        <option name="charting.axisLabelsY.majorUnit">5</option>
        <option name="charting.axisTitleX.visibility">visible</option>
        <option name="charting.axisTitleY.text">Count</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.minimumNumber">0</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.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">minmax</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">ellipsisEnd</option>
        <option name="charting.legend.placement">bottom</option>
        <option name="charting.chart.overlayFields">"Password Changed"</option>
      </chart>
    </panel>
  </row>
  <row>
    <panel>
      <html>        
        <center>
          <h1 style="background-color:grey">
            <font size="3" color="white">
              <b> Notable Severity Messages (Critical, Emergency, Alert, Warning) </b>
            </font>
          </h1>
        </center>
      </html>
    </panel>
  </row>
  <row>
    <panel>
      <chart>
        <title>Critical, Emergency and Alert Messages</title>
        <search>
          <query>index=$index$   sourcetype="linux_*"  "crit" OR "emerg" OR "alert"  | rex field=_raw "^[^\]\n]*\][:| ]\s+(?P&lt;message&gt;.*)"  | timechart count by product usenull=f useother=f</query>
          <earliest>$field1.earliest$</earliest>
          <latest>$field1.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">minmax</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>Warning Message</title>
        <search>
          <query>index=$index$   sourcetype="linux_*"  "warning"  | timechart  count  by product usenull=f useother=f</query>
          <earliest>$field1.earliest$</earliest>
          <latest>$field1.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">area</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">minmax</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">ellipsisEnd</option>
        <option name="charting.legend.placement">bottom</option>
      </chart>
    </panel>
  </row>
  <row>
    <panel>
      <chart>
        <title>Occurence of Failed / Failure related messages</title>
        <search>
          <query>index=$index$   sourcetype="linux_*"  "*failed*" OR "*failure*"  | rex field=_raw "^[^\]\n]*\][:| ]\s+(?P&lt;message&gt;.*)" | timechart count by product usenull=f useother=f</query>
          <earliest>$field1.earliest$</earliest>
          <latest>$field1.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">area</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">minmax</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">ellipsisEnd</option>
        <option name="charting.legend.placement">bottom</option>
      </chart>
    </panel>
  </row>
</form>