berangerthomas commited on
Commit
b7064b4
·
1 Parent(s): 633774d

Add log file format description

Browse files
Files changed (1) hide show
  1. sections/upload.py +44 -1
sections/upload.py CHANGED
@@ -8,7 +8,50 @@ import streamlit as st
8
  st.title("ShadowLog - Log File Analyzer")
9
  st.write("Upload a log file to analyze with the following format :")
10
  st.write(
11
- "timestamp;ipsrc;ipdst;protocole;portsrc;portdst;rule;action;interface;unknown;fw"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  )
13
 
14
  uploaded_file = st.file_uploader("Choose a log file")
 
8
  st.title("ShadowLog - Log File Analyzer")
9
  st.write("Upload a log file to analyze with the following format :")
10
  st.write(
11
+ """
12
+ <style>
13
+ table, th, td {
14
+ border: 1px solid black;
15
+ border-collapse: collapse;
16
+ text-align: center;
17
+ }
18
+ </style>
19
+ <table>
20
+ <thead>
21
+ <tr>
22
+ <th>Column name</th>
23
+ <td>timestamp</td>
24
+ <td>ipsrc</td>
25
+ <td>ipdst</td>
26
+ <td>protocole</td>
27
+ <td>portsrc</td>
28
+ <td>portdst</td>
29
+ <td>rule</td>
30
+ <td>action</td>
31
+ <td>interface</td>
32
+ <td>unknown</td>
33
+ <td>fw</td>
34
+ </tr>
35
+ </thead>
36
+ <tbody>
37
+ <tr>
38
+ <th>Format</th>
39
+ <td>YYYY-MM-DD HH:MM:SS</td>
40
+ <td>str</td>
41
+ <td>str</td>
42
+ <td>str</td>
43
+ <td>int</td>
44
+ <td>int</td>
45
+ <td>int</td>
46
+ <td>str</td>
47
+ <td>str</td>
48
+ <td>str</td>
49
+ <td>int</td>
50
+ </tr>
51
+ </tbody>
52
+ </table>
53
+ """,
54
+ unsafe_allow_html=True,
55
  )
56
 
57
  uploaded_file = st.file_uploader("Choose a log file")