This recipe demonstrates how to display random server log using random datasource and composite datasource.
Steps taken:
- Create a random datasource (Random-Server-Log.ds). Set “Count” to 500. Add the following columns:Column 1 Name=TimeStamp, Data Type=Timestamp, Value Type=Expression, Range from 2008-01-01 12:30:10 to 2008-12-31 00:00:00Column 2 Name=Thread-Number, Data Type=Integer, Value Type=Expression, Range from 000 to 999Column 3 Name=ThreadName, Data Type=String, Value Type=Expression, Values=btpoolColumn 4 Name=Log_Level, Data Type=String, Value Type=Expression, Values=ERROR,DEBUG,INFO,WARNINGColumn 5 Name=Message, Data Type=String, Value Type=Expression, Values as shown in the random datasource sample.
- Create a composite datasource (Random-Server-Log-Composite.ds). Add appropriate elements and draw flows as shown in the composite datasource sample.
- The output will display 500 lines of server log information.
To download the necessary files for this recipe, refer to the attached ZIP file.
Random-Server-Log-Generator.zip